-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
25 lines (20 loc) · 904 Bytes
/
CMakeLists.txt
File metadata and controls
25 lines (20 loc) · 904 Bytes
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
cmake_minimum_required(VERSION 2.8)
project(Libdispatch-proton)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/qpid-proton/tools/cmake/Modules/")
add_subdirectory(qpid-proton EXCLUDE_FROM_ALL)
add_subdirectory(xdispatch EXCLUDE_FROM_ALL)
if (MSVC)
set(CMAKE_DEBUG_POSTFIX "d")
endif (MSVC)
add_library(libdispatch_proton STATIC lp.c)
set_source_files_properties(lp.c PROPERTIES LANGUAGE CXX)
include_directories(libdispatch_proton "qpid-proton/proton-c/include" "xdispatch/libdispatch/include")
target_link_libraries(libdispatch_proton qpid-proton)
if (HAVE_NATIVE_DISPATCH_H)
target_link_libraries(libdispatch_proton -lSystem.B)
else( HAVE_NATIVE_DISPATCH_H)
target_link_libraries(libdispatch_proton dispatch)
endif( HAVE_NATIVE_DISPATCH_H)
add_executable(ggg ggg.c)
set_source_files_properties(ggg.c PROPERTIES LANGUAGE CXX)
target_link_libraries(ggg libdispatch_proton)