open-license-manager
2014-04-21 0288790e61dec962f43b4ebf4a4fa3057dbd2d02
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
link_directories ( ${Boost_LIBRARY_DIRS} )
 
add_executable(
 license_reader_test
 LicenseReader_test.cpp
)
 
target_link_libraries(
 license_reader_test
 license++_static
 ${Boost_LIBRARIES}
)
 
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)
#test windows
ELSE(WIN32)
    add_executable(
         os_linux_test
         Os_Linux_test.cpp
    )
 
    target_link_libraries(
         os_linux_test
         os
         ${Boost_LIBRARIES}
    )
 
    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)