Descent3/2dlib/CMakeLists.txt
Azamat H. Hackimov 4826c37a69 Add BUILD_INTERFACE to cfile module
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.
2024-04-24 00:41:02 +03:00

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
)