From fe8f571f47745f4a2119d11e40e64053c5db448d Mon Sep 17 00:00:00 2001 From: Jason Turner Date: Mon, 7 Mar 2016 07:16:57 -0700 Subject: [PATCH] Add test_module to set of required modules during build --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 50b5e3e..621b07d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -271,6 +271,9 @@ endif() if(BUILD_MODULES) + add_library(test_module MODULE src/test_module.cpp) + target_link_libraries(test_module ${LIBS}) + add_library(stl_extra MODULE src/stl_extra.cpp) target_link_libraries(stl_extra ${LIBS}) @@ -456,9 +459,6 @@ if(BUILD_TESTING) target_link_libraries(multifile_test ${LIBS}) add_test(NAME MultiFile_Test COMMAND multifile_test) - add_library(test_module MODULE src/test_module.cpp) - target_link_libraries(test_module ${LIBS}) - install(TARGETS test_module RUNTIME DESTINATION bin LIBRARY DESTINATION lib/chaiscript) endif() endif()