2024-08-09 15:00:30 +00:00
|
|
|
set(HEADERS
|
|
|
|
pserror.h
|
|
|
|
psglob.h
|
|
|
|
psrand.h
|
|
|
|
pstring.h)
|
2024-04-20 12:35:20 +00:00
|
|
|
set(CPPS
|
2024-04-21 09:02:27 +00:00
|
|
|
error.cpp
|
|
|
|
psglob.cpp
|
|
|
|
psrand.cpp
|
2024-06-26 21:09:50 +00:00
|
|
|
pstring.cpp
|
|
|
|
)
|
2024-04-16 03:43:29 +00:00
|
|
|
|
2024-08-09 15:00:30 +00:00
|
|
|
add_library(misc STATIC ${HEADERS} ${CPPS})
|
2024-06-26 21:09:50 +00:00
|
|
|
target_link_libraries(misc PRIVATE
|
|
|
|
ddebug
|
2024-06-29 00:52:39 +00:00
|
|
|
SDL2::SDL2
|
2024-06-26 21:09:50 +00:00
|
|
|
)
|
|
|
|
target_include_directories(misc PUBLIC
|
|
|
|
$<BUILD_INTERFACE:
|
|
|
|
${PROJECT_SOURCE_DIR}/misc
|
|
|
|
>
|
|
|
|
)
|
2024-04-30 21:50:25 +00:00
|
|
|
|
|
|
|
if(BUILD_TESTING)
|
|
|
|
add_subdirectory(tests)
|
|
|
|
endif()
|