ADD_LIBRARY(license_generator_snippet STATIC generate-license.cpp ) target_link_libraries( license_generator_snippet license_generator_lib ) add_executable( standard_license_test standard-license_test.cpp ) target_link_libraries( standard_license_test license++_static license_generator_snippet ${Boost_LIBRARIES} ) #SET_TARGET_PROPERTIES(standard_license_test PROPERTIES LINK_SEARCH_START_STATIC ON) #add_dependencies( standard_license_test boost_test boost_filesystem ) add_executable( date_test date_test.cpp ) target_link_libraries( date_test license++_static license_generator_snippet ${Boost_LIBRARIES} ) #SET_TARGET_PROPERTIES(date_test PROPERTIES LINK_SEARCH_START_STATIC ON) #add_dependencies( date_test boost_test boost_filesystem ) add_executable( volid_test volid_test.cpp ) target_link_libraries( volid_test license++_static license_generator_snippet ${Boost_LIBRARIES} ) #SET_TARGET_PROPERTIES(volid_test PROPERTIES LINK_SEARCH_START_STATIC ON) #add_dependencies( volid_test boost_test boost_filesystem ) ADD_TEST(NAME standard_license_test COMMAND standard_license_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) ADD_TEST(NAME date_test COMMAND date_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR}) ADD_TEST(NAME volid_test COMMAND volid_test WORKING_DIRECTORY ${CMAKE_BINARY_DIR})