CMakeLists.txt 739 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. # Set the project name
  2. project (gateway-server)
  3. # CMAKE_SOURCE_DIR path to CMakeLists.txt directory
  4. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/deploy/bin)
  5. set(INCLUDE_SUBDIRECTORIES
  6. ${CMAKE_SOURCE_DIR}/include
  7. ${CMAKE_SOURCE_DIR}/library/include
  8. ${CMAKE_SOURCE_DIR}/modules
  9. )
  10. include_directories(${INCLUDE_SUBDIRECTORIES})
  11. file(GLOB_RECURSE SRC_FILES src/*.cpp)
  12. link_directories(${CMAKE_SOURCE_DIR}/library/lib ${CMAKE_SOURCE_DIR}/deploy/library)
  13. link_libraries(
  14. microhttpd
  15. sqlite3
  16. boost_filesystem
  17. gateway-basic
  18. )
  19. # Add an executable
  20. add_executable(${PROJECT_NAME} ${SRC_FILES})
  21. target_link_libraries(${PROJECT_NAME} PUBLIC gateway-basic stdc++fs)