mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-23 03:58:59 +00:00
60c5dbf1fe
This can help with CMake IDE integration and file indexing.
31 lines
420 B
CMake
31 lines
420 B
CMake
set(HEADERS
|
|
log.h
|
|
logfile.h
|
|
pserror.h
|
|
psglob.h
|
|
psrand.h
|
|
pstring.h)
|
|
set(CPPS
|
|
error.cpp
|
|
logfile.cpp
|
|
log.cpp
|
|
psglob.cpp
|
|
psrand.cpp
|
|
pstring.cpp
|
|
)
|
|
|
|
add_library(misc STATIC ${HEADERS} ${CPPS})
|
|
target_link_libraries(misc PRIVATE
|
|
ddebug
|
|
SDL2::SDL2
|
|
)
|
|
target_include_directories(misc PUBLIC
|
|
$<BUILD_INTERFACE:
|
|
${PROJECT_SOURCE_DIR}/misc
|
|
>
|
|
)
|
|
|
|
if(BUILD_TESTING)
|
|
add_subdirectory(tests)
|
|
endif()
|