diff options
author | Pali Rohár <pali.rohar@gmail.com> | 2017-12-22 23:21:55 +0100 |
---|---|---|
committer | Pali Rohár <pali.rohar@gmail.com> | 2017-12-22 23:21:55 +0100 |
commit | 4e79ab4ac48dd923506f7f165cbfb32e87ca2710 (patch) | |
tree | 3194c922a50ea8c7f313114c18e02ecc34f180e3 /CMakeLists.txt | |
parent | bd203c036bf6a8a900fb9557f9dfa95b6eb1f46b (diff) |
Fix compiling storm_test executable
Compile it really only if STORM_BUILD_TESTS is enabled and link it against
compiled StormLib library instead of compiling all source files again.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f5211b1..3dbe52e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -359,9 +359,7 @@ install(TARGETS ${LIBRARY_NAME} INCLUDE(CPack) if(STORM_BUILD_TESTS) + add_executable(storm_test ${TEST_SRC_FILES}) target_link_libraries(storm_test ${LIBRARY_NAME}) - install(TARGETS storm_test DESTINATION bin) + install(TARGETS storm_test RUNTIME DESTINATION bin) endif() - -add_executable(storm_test ${SRC_FILES} ${TOMCRYPT_FILES} ${TOMMATH_FILES} ${ZLIB_BZIP2_FILES} ${TEST_SRC_FILES}) -install(TARGETS storm_test RUNTIME DESTINATION bin) |