From c9f9c3104e11e2ced0103266272907627e040643 Mon Sep 17 00:00:00 2001 From: Hyunsu Philip Cho Date: Thu, 4 May 2023 08:27:59 -0700 Subject: [PATCH] Add ctest target --- CMakeLists.txt | 3 ++- python/pyproject.toml | 2 +- python/tl2cgen/VERSION | 2 +- tests/cpp/CMakeLists.txt | 4 ++++ 4 files changed, 8 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4017838..79b2ee1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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$<$:Debug>") @@ -64,6 +64,7 @@ if (BUILD_JVM_RUNTIME) add_subdirectory(runtime/java) endif () if (BUILD_CPP_TESTS) + enable_testing() add_subdirectory(tests/cpp) endif () diff --git a/python/pyproject.toml b/python/pyproject.toml index e75d46e..8b25cfc 100644 --- a/python/pyproject.toml +++ b/python/pyproject.toml @@ -7,7 +7,7 @@ build-backend = "packager.pep517" [project] name = "tl2cgen" -version = "0.2.1" +version = "0.2.2" authors = [ {name = "Hyunsu Cho", email = "chohyu01@cs.washington.edu"} ] diff --git a/python/tl2cgen/VERSION b/python/tl2cgen/VERSION index 0c62199..ee1372d 100644 --- a/python/tl2cgen/VERSION +++ b/python/tl2cgen/VERSION @@ -1 +1 @@ -0.2.1 +0.2.2 diff --git a/tests/cpp/CMakeLists.txt b/tests/cpp/CMakeLists.txt index 1ac14c3..a29268e 100644 --- a/tests/cpp/CMakeLists.txt +++ b/tests/cpp/CMakeLists.txt @@ -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