|
|
@ -1,11 +1,17 @@ |
|
|
|
find_package(Boost COMPONENTS unit_test_framework REQUIRED) |
|
|
|
find_package(Boost COMPONENTS filesystem unit_test_framework REQUIRED) |
|
|
|
message(status "** Boost Include: ${Boost_INCLUDE_DIR}") |
|
|
|
message(status "** Boost Libraries: ${Boost_LIBRARY_DIRS}") |
|
|
|
message(status "** Boost Libraries: ${Boost_LIBRARIES}") |
|
|
|
INCLUDE_DIRECTORIES(${Boost_INCLUDE_DIR}) |
|
|
|
set (libcbag_dir "../../libcbag") |
|
|
|
include_directories("${libcbag_dir}/src/include") |
|
|
|
message(status "** libcbag Include: ${libcbag_dir}") |
|
|
|
message(status "** libcbag Libraries: ${libcbag_BINARY_DIR}") |
|
|
|
LINK_DIRECTORIES(${Boost_LIBRARY_DIRS}) |
|
|
|
add_definitions(-DBOOST_TEST_DYN_LINK) |
|
|
|
add_executable(Mytest test.cpp) |
|
|
|
add_executable(TestPayload test_payload.cpp) |
|
|
|
target_link_libraries(Mytest ${Boost_UNIT_TEST_FRAMEWORK_LIBRARY}) |
|
|
|
target_link_libraries(TestPayload ${Boost_LIBRARIES} ${OPENSSL_LIBRARIES} libcbag) |
|
|
|
|
|
|
|
|