Files
concrete/compiler/tests/TestLib/CMakeLists.txt
Antoniu Pop c440fc30f8 fix: CMake dependencies
define CONCRETELANG_PARALLEL_EXECUTION_ENABLED at toplevel and prevent RuntimeContext copy constructors from passing engines map.
2022-03-15 18:14:35 +01:00

35 lines
577 B
CMake

enable_testing()
include_directories(${PROJECT_SOURCE_DIR}/include)
add_executable(
testlib_unit_test
testlib_unit_test.cpp
)
set_source_files_properties(
testlib_unit_test.cpp
PROPERTIES COMPILE_FLAGS "-fno-rtti"
)
target_link_libraries(
testlib_unit_test
ConcretelangCommon
ConcretelangRuntime
ConcretelangSupport
ConcretelangClientLib
ConcretelangServerLib
gtest_main
)
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
target_link_libraries(
testlib_unit_test
Concrete
)
endif()
include(GoogleTest)
gtest_discover_tests(testlib_unit_test)