cmake_minimum_required(VERSION 3.5)
project(tw-ldm-interface)
set(TW_ROOT ${CMAKE_CURRENT_SOURCE_DIR}/../ThingWorx-edge-c-sdk)

add_subdirectory(tw-ldm-interface-lib)
add_subdirectory(tw-ldm-interface-tests)
set(OS "linux")
message(STATUS "OS: " ${OS})
message(STATUS "CMAKE_SYSTEM_NAME: " ${CMAKE_SYSTEM_NAME})
add_definitions(-DTW_OS_INCLUDE="twLinux-openssl.h")

include_directories(${TW_ROOT}/src/api ${TW_ROOT}/src/config ${TW_ROOT}/src/fileTransfer ${TW_ROOT}/src/messaging ${TW_ROOT}/src/porting)
include_directories(${TW_ROOT}/src/tls ${TW_ROOT}/src/utils ${TW_ROOT}/src/websocket ${TW_ROOT}/src/tunneling ${TW_ROOT}/src/shapes ${TW_ROOT}/src/primitiveUtils)
include_directories(${TW_ROOT}/src/standardProps ${TW_ROOT}/src/threadUtils ${TW_ROOT}/src/subscribedProps)
include_directories(${TW_ROOT}/src/thirdParty/cJSON ${TW_ROOT}/src/thirdParty/wildcard ${TW_ROOT}/src/thirdParty/tomcrypt/src/headers ${TW_ROOT}/src/stubs)
include_directories(${TW_ROOT}/src/thirdParty/ntlm ${TW_ROOT}/src/thirdParty/libcfu/src ${TW_ROOT}/src/thirdParty/zlib ${TW_ROOT}/src/thirdParty/zlib/contrib/minizip)

set(CMAKE_LIBRARY_PATH ${CMAKE_LIBRARY_PATH} /usr/local/lib)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -ggdb -O0")
