# Set the project name project (gateway-basic) # CMAKE_SOURCE_DIR path to CMakeLists.txt directory set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/deploy/library) set(INCLUDE_SUBDIRECTORIES ${CMAKE_SOURCE_DIR}/include ${CMAKE_SOURCE_DIR}/library/include ${CMAKE_SOURCE_DIR}/include/gateway-basic ) include_directories(${INCLUDE_SUBDIRECTORIES}) file(GLOB_RECURSE SRC_FILES src/*.cpp) link_directories(${CMAKE_SOURCE_DIR}/library/lib) link_libraries( sqlite3 boost_filesystem hiredis ) # Add an executable # add_executable(${PROJECT_NAME} ${SRC_FILES}) add_library(${PROJECT_NAME} SHARED ${SRC_FILES})