24 lines
635 B
CMake
24 lines
635 B
CMake
cmake_minimum_required(VERSION 3.18..3.29)
|
|
|
|
file(GLOB_RECURSE CaveServer_HEADERS "include/*.hpp")
|
|
file(GLOB_RECURSE CaveServer_SRC "src/*.cpp")
|
|
|
|
if (UNIX)
|
|
add_library(CaveServer SHARED ${CaveServer_SRC})
|
|
endif()
|
|
|
|
if (WIN32)
|
|
add_library(CaveServer SHARED ${CaveServer_SRC})
|
|
endif()
|
|
|
|
target_include_directories(CaveServer PUBLIC
|
|
${CaveCore_SOURCE_DIR}/include
|
|
${J3ML_SOURCE_DIR}/include
|
|
${Sockets_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_include_directories(CaveServer PUBLIC "include")
|
|
|
|
set_target_properties(CaveServer PROPERTIES LINKER_LANGUAGE CXX)
|
|
|
|
target_link_libraries(CaveServer PUBLIC CaveCore J3ML Sockets) |