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)
|
2022-03-09 21:30:51 +02:00
|
|
|
include_directories(${Boost_INCLUDE_DIRS})
|
|
|
|
target_link_libraries(${PROJECT_NAME} PRIVATE ${Boost_LIBRARIES})
|