Descent3/cfile/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
354 B
CMake

set(HEADERS
cfile.h
hogfile.h
inffile.h)
set(CPPS
cfile.cpp
hogfile.cpp
inffile.cpp
)
add_library(cfile STATIC ${HEADERS} ${CPPS})
target_link_libraries(cfile PRIVATE
ddio
mem
misc
)
target_include_directories(cfile PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/cfile
>
)
if(BUILD_TESTING)
add_subdirectory(tests)
endif()