server/libthecore/CMakeLists.txt

21 lines
416 B
CMake
Raw Normal View History

2022-03-05 12:44:06 +02:00
cmake_minimum_required(VERSION 2.8)
2022-03-05 19:59:39 +02:00
project(libthecore CXX)
2022-03-05 12:44:06 +02:00
# Find source files
file(GLOB SOURCES
2022-03-05 19:59:39 +02:00
"src/*.cpp"
2022-03-05 12:44:06 +02:00
"include/*.h"
)
# Include header files
include_directories("include")
# Create shared library
add_library(${PROJECT_NAME} STATIC ${SOURCES})
# Find dependencies
find_package(Boost REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
target_link_libraries(${PROJECT_NAME} PRIVATE ${Boost_LIBRARIES})