CMakeLists.txt 677 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. # Set the project name
  2. project (gateway-basic)
  3. # CMAKE_SOURCE_DIR path to CMakeLists.txt directory
  4. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/deploy/library)
  5. set(INCLUDE_SUBDIRECTORIES
  6. ${CMAKE_SOURCE_DIR}/include
  7. ${CMAKE_SOURCE_DIR}/library/include
  8. ${CMAKE_SOURCE_DIR}/include/gateway-basic
  9. )
  10. include_directories(${INCLUDE_SUBDIRECTORIES})
  11. file(GLOB_RECURSE SRC_FILES src/*.cpp)
  12. link_directories(${CMAKE_SOURCE_DIR}/library/lib)
  13. link_libraries(
  14. sqlite3
  15. boost_filesystem
  16. hiredis
  17. )
  18. # Add an executable
  19. # add_executable(${PROJECT_NAME} ${SRC_FILES})
  20. add_library(${PROJECT_NAME} SHARED ${SRC_FILES})