mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-01-22 11:28:56 +00:00
4826c37a69
Other modules that depends on it, can reuse includes on linking. There some files formally not belonging any packages (lib directory), as workaround there temporary include_directories(cfile) on root of project. After migrating all modules this can be removed.
16 lines
229 B
CMake
16 lines
229 B
CMake
set(HEADERS 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
|
|
)
|