Descent3/linux/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

30 lines
444 B
CMake

set(HEADERS
linux_fix.h
lnxapp.h
lnxcontroller.h
registry.h)
set(CPPS
lnxcon.cpp
lnxcon_raw.cpp
lnxcontroller.cpp
lnxapp.cpp
lnxcon_null.cpp
lnxdata.cpp
registry.cpp
)
add_library(linux STATIC ${HEADERS} ${CPPS})
target_link_libraries(linux PRIVATE
cfile
)
target_include_directories(linux PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/linux
>
)
target_link_libraries(linux PRIVATE
ddio
misc
SDL2::SDL2
)