123456789101112131415161718192021222324252627282930313233343536373839 |
- # Set the project name
- project (gateway-server)
- # 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
- )
- include_directories(${INCLUDE_SUBDIRECTORIES})
- file(GLOB_RECURSE SRC_FILES src/*.cpp)
- link_directories(${CMAKE_SOURCE_DIR}/library/lib ${CMAKE_SOURCE_DIR}/deploy/library)
- link_libraries(
- microhttpd
- sqlite3
- boost_filesystem
- gateway-basic
- )
- # Add an executable
- add_executable(${PROJECT_NAME} ${SRC_FILES})
- target_link_libraries(${PROJECT_NAME} PUBLIC gateway-basic stdc++fs)
|