Descent3/2dlib/CMakeLists.txt
Louis Gombert 60c5dbf1fe CMake: add all headers to target sources
This can help with CMake IDE integration and file indexing.
2024-08-09 17:09:14 +02:00

26 lines
351 B
CMake

set(HEADERS
gr.h
lib2d.h)
set(CPPS
font.cpp
hardsurf.cpp
memsurf.cpp
pen.cpp
pentext.cpp
screen.cpp
surface.cpp
viewport.cpp
)
add_library(2dlib STATIC ${HEADERS} ${CPPS})
target_link_libraries(2dlib PRIVATE
cfile
mem
misc
)
target_include_directories(2dlib PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/2dlib
>
)