# Set the project name project (gateway-scheduler) # CMAKE_SOURCE_DIR path to CMakeLists.txt directory set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/deploy/bin) set(INCLUDE_SUBDIRECTORIES ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/library/include ${CMAKE_SOURCE_DIR}/modules ${CMAKE_SOURCE_DIR}/deploy/library ) include_directories(${INCLUDE_SUBDIRECTORIES}) file(GLOB_RECURSE SRC_FILES src/*.cpp) link_directories(${CMAKE_SOURCE_DIR}/library/lib) link_libraries( gateway-basic sqlite3 boost_filesystem modbus pthread paho-mqttpp3 paho-mqtt3as iec61850 libloragw.a ) # Add an executable add_executable(${PROJECT_NAME} ${SRC_FILES}) target_link_libraries(${PROJECT_NAME} PUBLIC gateway-basic)