From ef84976d556bc5ff20040f1e11980798cf7815e9 Mon Sep 17 00:00:00 2001 From: open-license-manager <rillf@maildrop.cc> Date: 周五, 08 8月 2014 15:34:25 +0800 Subject: [PATCH] build linux --- test/library/CMakeLists.txt | 15 +++++++-------- 1 files changed, 7 insertions(+), 8 deletions(-) diff --git a/test/library/CMakeLists.txt b/test/library/CMakeLists.txt index d4067c2..3e7ee93 100644 --- a/test/library/CMakeLists.txt +++ b/test/library/CMakeLists.txt @@ -1,5 +1,3 @@ -link_directories ( ${Boost_LIBRARY_DIRS} ) - add_executable( license_reader_test LicenseReader_test.cpp @@ -8,15 +6,15 @@ target_link_libraries( license_reader_test license++_static - ${Boost_LIBRARIES} ) +add_dependencies( license_reader_test boost_test boost_filesystem ) SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_START_STATIC ON) ADD_TEST(license_reader_test ${EXECUTABLE_OUTPUT_PATH}/license_reader_test) -IF(WIN32) +#IF(WIN32) #test windows -ELSE(WIN32) +#ELSE(WIN32) add_executable( os_linux_test Os_Linux_test.cpp @@ -25,9 +23,10 @@ target_link_libraries( os_linux_test os - ${Boost_LIBRARIES} ) - + + add_dependencies( os_linux_test boost_test ) SET_TARGET_PROPERTIES(os_linux_test PROPERTIES LINK_SEARCH_START_STATIC ON) ADD_TEST(os_linux_test ${EXECUTABLE_OUTPUT_PATH}/os_linux_test) -ENDIF(WIN32) \ No newline at end of file + +#ENDIF(WIN32) \ No newline at end of file -- Gitblit v1.9.1