open-license-manager
2014-08-13 1ae5de2f59799a5d02e64cfa36bd1d3b36827f43
test/library/CMakeLists.txt
@@ -1,17 +1,18 @@
link_directories ( ${Boost_LIBRARY_DIRS} )
add_executable(
 license_reader_test
 LicenseReader_test.cpp
)
#add_dependencies( license_reader_test boost_filesystem )
target_link_libraries(
 license_reader_test
 license++_static
 ${Boost_LIBRARIES}
 boost_filesystem
 boost_test
)
SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_START_STATIC ON)
#SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_START_STATIC ON)
#SET_TARGET_PROPERTIES(license_reader_test PROPERTIES LINK_SEARCH_END_STATIC OFF)
ADD_TEST(license_reader_test ${EXECUTABLE_OUTPUT_PATH}/license_reader_test)
IF(WIN32)
@@ -25,9 +26,11 @@
   target_link_libraries(
       os_linux_test
       os
       ${Boost_LIBRARIES}
       ${Boost_test_LIBRARY}
   )
   SET_TARGET_PROPERTIES(os_linux_test PROPERTIES LINK_SEARCH_START_STATIC ON)
   #add_dependencies( os_linux_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)