Debian Codegraph @

misc/CMakeLists.txt

raw
1 set(HEADERS
2 log.h
3 logfile.h
4 pserror.h
5 psglob.h
6 psrand.h
7 pstring.h)
8 set(CPPS
9 error.cpp
10 logfile.cpp
11 log.cpp
12 psglob.cpp
13 psrand.cpp
14 pstring.cpp
15 )
16
17 add_library(misc STATIC ${HEADERS} ${CPPS})
18 target_link_libraries(misc PRIVATE
19 ddebug
20 SDL2::SDL2
21 )
22 target_include_directories(misc PUBLIC
23 $<BUILD_INTERFACE:
24 ${PROJECT_SOURCE_DIR}/misc
25 >
26 )
27
28 if(BUILD_TESTING)
29 add_subdirectory(tests)
30 endif()