Skip to content

Commit

Permalink
Add ctest target
Browse files Browse the repository at this point in the history
  • Loading branch information
hcho3 committed May 4, 2023
1 parent 1c95d6e commit c9f9c31
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
cmake_policy(SET CMP0091 NEW)
set(CMAKE_FIND_NO_INSTALL_PREFIX TRUE FORCE)
cmake_minimum_required(VERSION 3.16)
project(tl2cgen LANGUAGES CXX C VERSION 0.2.1)
project(tl2cgen LANGUAGES CXX C VERSION 0.2.2)

set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")

Expand Down Expand Up @@ -64,6 +64,7 @@ if (BUILD_JVM_RUNTIME)
add_subdirectory(runtime/java)
endif ()
if (BUILD_CPP_TESTS)
enable_testing()
add_subdirectory(tests/cpp)
endif ()

Expand Down
2 changes: 1 addition & 1 deletion python/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ build-backend = "packager.pep517"

[project]
name = "tl2cgen"
version = "0.2.1"
version = "0.2.2"
authors = [
{name = "Hyunsu Cho", email = "[email protected]"}
]
Expand Down
2 changes: 1 addition & 1 deletion python/tl2cgen/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.2.1
0.2.2
4 changes: 4 additions & 0 deletions tests/cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ target_link_libraries(tl2cgen_cpp_test
PRIVATE obj_tl2cgen rapidjson
GTest::GTest GTest::gmock fmt::fmt-header-only)
set_output_directory(tl2cgen_cpp_test ${PROJECT_BINARY_DIR})
add_test(
NAME TestTL2cgen
COMMAND tl2cgen_cpp_test
WORKING_DIRECTORY ${PROJECT_BINARY_DIR})

if (MSVC)
target_compile_options(tl2cgen_cpp_test PRIVATE
Expand Down

0 comments on commit c9f9c31

Please sign in to comment.