forked from Appdynamics/iot-cpp-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
31 lines (23 loc) · 833 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
29
30
31
cmake_minimum_required(VERSION 3.0)
project (sample)
######################
# Build Settings
######################
#For the shared library:
set (APPD_SDK_LINK_LIBS appdynamicsiotsdk)
##############################
# Include and Link Directories
##############################
include_directories(${CMAKE_SOURCE_DIR}/sdk/include)
link_directories(${CMAKE_BINARY_DIR}/sdk/lib)
file(GLOB SOURCES "src/*.cpp")
######################################################
# Build Target
# sample : create executable to run sample application
######################################################
add_executable(sample ${SOURCES})
if(BUILD_32BIT)
set_target_properties(sample PROPERTIES COMPILE_FLAGS "-m32" LINK_FLAGS "-m32")
endif()
add_dependencies(sample appdynamicsiotsdk)
target_link_libraries(sample ${APPD_SDK_LINK_LIBS} curl)