forked from metin2/server
24 lines
571 B
CMake
24 lines
571 B
CMake
|
cmake_minimum_required(VERSION 2.8)
|
||
|
|
||
|
project(quest CXX)
|
||
|
|
||
|
file(GLOB_RECURSE sources
|
||
|
src/*.cc src/*.h
|
||
|
src/*.c
|
||
|
)
|
||
|
|
||
|
include_directories(src/)
|
||
|
|
||
|
# Find dependencies
|
||
|
find_package(Boost REQUIRED)
|
||
|
|
||
|
add_executable(${PROJECT_NAME} ${sources})
|
||
|
|
||
|
# Link dependencies if found
|
||
|
if (Boost_FOUND)
|
||
|
include_directories(${Boost_INCLUDE_DIRS})
|
||
|
target_link_libraries (${PROJECT_NAME} ${Boost_LIBRARIES})
|
||
|
endif (Boost_FOUND)
|
||
|
|
||
|
target_link_libraries(${PROJECT_NAME} liblua)
|
||
|
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../liblua)
|