-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
29 lines (22 loc) · 1010 Bytes
/
CMakeLists.txt
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
PROJECT (multcher)
CMAKE_MINIMUM_REQUIRED (VERSION 2.6)
INCLUDE (CMakeMacro.cmake)
SET(MULTCHER_VERSION_MAJOR 0)
SET(MULTCHER_VERSION_MINOR 1)
SET(MULTCHER_VERSION_PATCH 0)
SET(MULTCHER_VERSION "${MULTCHER_VERSION_MAJOR}.${MULTCHER_VERSION_MINOR}.${MULTCHER_VERSION_PATCH}")
USE_PACKAGE (expat expat.h)
USE_PACKAGE (coda coda/coda.h)
USE_PACKAGE (curl curl/curl.h)
USE_PACKAGE (pthread pthread.h)
AUX_SOURCE_DIRECTORY(multcher SRC_MULTCHER)
ADD_LIBRARY(multcher ${SRC_MULTCHER})
TARGET_LINK_LIBRARIES(multcher ${LIB_coda} curl pthread)
SET_TARGET_PROPERTIES(multcher PROPERTIES OUTPUT_NAME multcher)
SET_TARGET_PROPERTIES(multcher PROPERTIES LINKER_LANGUAGE CXX)
INSTALL(FILES multcher/multcher.hpp DESTINATION include/multcher)
INSTALL(TARGETS multcher DESTINATION lib${LIB_SUFFIX})
ADD_EXECUTABLE(test_multcher test_multcher/main.cpp)
TARGET_LINK_LIBRARIES(test_multcher multcher)
ADD_EXECUTABLE(test_parse_robotstxt test_parse_robotstxt/main.cpp)
TARGET_LINK_LIBRARIES(test_parse_robotstxt multcher)