25 lines
447 B
CMake
25 lines
447 B
CMake
add_library(DeerithCore)
|
|
|
|
find_package(spdlog REQUIRED)
|
|
find_package(fmt REQUIRED)
|
|
|
|
file(GLOB_RECURSE DEERITH_CORE_SOURCES
|
|
CONFIGURE_DEPENDS
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src/*.cpp
|
|
)
|
|
|
|
target_sources(DeerithCore
|
|
PRIVATE
|
|
${DEERITH_CORE_SOURCES}
|
|
)
|
|
|
|
target_include_directories(DeerithCore
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
)
|
|
|
|
target_link_libraries(DeerithCore
|
|
PUBLIC
|
|
spdlog::spdlog
|
|
fmt::fmt
|
|
) |