linux/CMakeLists.txt
raw| 1 | set(HEADERS |
| 2 | linux_fix.h |
| 3 | lnxapp.h |
| 4 | lnxcontroller.h |
| 5 | registry.h) |
| 6 | set(CPPS |
| 7 | lnxcon.cpp |
| 8 | lnxcon_raw.cpp |
| 9 | lnxcontroller.cpp |
| 10 | lnxapp.cpp |
| 11 | lnxcon_null.cpp |
| 12 | lnxdata.cpp |
| 13 | registry.cpp |
| 14 | ) |
| 15 | |
| 16 | add_library(linux STATIC ${HEADERS} ${CPPS}) |
| 17 | target_link_libraries(linux PRIVATE |
| 18 | cfile |
| 19 | ) |
| 20 | target_include_directories(linux PUBLIC |
| 21 | $<BUILD_INTERFACE: |
| 22 | ${PROJECT_SOURCE_DIR}/linux |
| 23 | > |
| 24 | ) |
| 25 | target_link_libraries(linux PRIVATE |
| 26 | ddio |
| 27 | misc |
| 28 | SDL2::SDL2 |
| 29 | ) |