aboutsummaryrefslogtreecommitdiffstats
path: root/doc/zmq-ctrl/cpp/test/CMakeLists.txt
blob: 4b877d07c23943b7cafa33564a655f388d66e687 (plain)
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
cmake_minimum_required(VERSION 2.6)
project (ctrl_test)
 
ADD_DEFINITIONS(-DBOOST_TEST_DYN_LINK -D_SCL_SECURE_NO_WARNINGS)

set(BOOST_LIBRARYDIR)
set(BOOST_INCLUDEDIR)
set(BOOST_USE_MULTITHREADED ON)
set(BOOST_USE_STATIC_LIBS ON)
set(BOOST_MIN_VERSION 1.55)

find_package( Boost ${BOOST_MIN_VERSION} REQUIRED 
            unit_test_framework 
            system 
            )

set(PROJECT_TEST_SRCS 
${CMAKE_CURRENT_SOURCE_DIR}/ctrl_test.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../OdrModCtrl.cpp
)

include_directories( ${PROJECT_SOURCE_DIR}/../ )
link_directories (/usr/local/lib)
add_executable(${PROJECT_NAME} ${PROJECT_TEST_SRCS})

target_link_libraries(${PROJECT_NAME}
	zmq 
	${Boost_LIBRARIES}
	)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")