24 lines
545 B
CMake
24 lines
545 B
CMake
cmake_minimum_required(VERSION 3.18..3.29)
|
|
|
|
file(GLOB_RECURSE CaveClient_HEADERS "include/*.hpp")
|
|
file(GLOB_RECURSE CaveClient_SRC "src/*.cpp")
|
|
|
|
if (UNIX)
|
|
add_library(CaveClient SHARED ${CaveClient_SRC})
|
|
endif()
|
|
|
|
if (WIN32)
|
|
add_library(CaveClient SHARED ${CaveClient_SRC})
|
|
endif()
|
|
|
|
target_include_directories(CaveClient PUBLIC ${CaveCore_SOURCE_DIR}/include)
|
|
|
|
target_include_directories(CaveClient PUBLIC "include")
|
|
|
|
|
|
set_target_properties(CaveClient PROPERTIES LINKER_LANGUAGE CXX)
|
|
|
|
target_link_libraries(CaveClient PUBLIC CaveCore)
|
|
|
|
|