19 lines
515 B
CMake
19 lines
515 B
CMake
cmake_minimum_required(VERSION 3.18..3.29)
|
|
|
|
file(GLOB_RECURSE CaveCore_HEADERS "include/*.hpp")
|
|
file(GLOB_RECURSE CaveCore_SRC "src/*.cpp")
|
|
|
|
if (UNIX)
|
|
add_library(CaveCore SHARED ${CaveCore_SRC})
|
|
endif()
|
|
|
|
if (WIN32)
|
|
add_library(CaveCore STATIC ${CaveCore_SRC})
|
|
endif()
|
|
|
|
target_include_directories(CaveCore PUBLIC "include")
|
|
|
|
set_target_properties(CaveCore PROPERTIES LINKER_LANGUAGE CXX)
|
|
target_include_directories(CaveCore PUBLIC ${J3ML_SOURCE_DIR}/include)
|
|
|
|
target_link_libraries(CaveCore PUBLIC J3ML) |