-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
47 lines (36 loc) · 1.15 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
cmake_minimum_required(VERSION 3.5)
project(hcp VERSION 1.0 LANGUAGES C CXX)
set(CMAKE_CXX_STANDARD 98)
option(HCP_PYTHON "Enable the python bindings for hcp" OFF)
option(HCP_JAVA "Enable the java bindings for hcp" OFF)
option(HCP_OBJC "Enable the objective-c bindings for hcp" OFF)
option(HCP_ENABLE_TESTS "Enable unit tests for hcp" OFF)
option(HCP_ENABLE_EXAMPLES "Build examples for hcp" OFF)
if(HCP_ENABLE_TESTS)
enable_testing()
endif()
if(HCP_PYTHON OR HCP_JAVA OR HCP_OBJC)
list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake")
endif()
add_subdirectory(c)
if(HCP_PYTHON OR HCP_JAVA OR HCP_OBJC)
add_subdirectory(cpp)
endif()
if(HCP_ENABLE_TESTS)
add_subdirectory(echo_codec)
endif()
if(APPLE AND HCP_OBJC)
add_subdirectory(objective-c)
endif()
if(HCP_JAVA)
add_subdirectory(java)
endif()
if(HCP_PYTHON)
add_subdirectory(python)
endif()
#message(info ${LIBUV
#target_link_libraries(hcp_cpp LibUV)
#add_executable(hcp_cpp_demo cpp/src/main.cpp)
#target_link_libraries(hcp_cpp_demo hcp_cpp)
#target_compile_options(hcp_cpp_demo PRIVATE -Wno-writable-strings)
#target_compile_options(hcp_cpp_demo PRIVATE -Wno-format-security)