mirror of
https://github.com/kevinbentley/Descent3.git
synced 2025-12-19 17:37:42 -05:00
After initialization, we get following base directories list (in priority order): * Writable preference path * User defined paths (cmd-line and configuration) * Platform defined paths (such as /usr/share/Descent3 on Linux or Steam installation paths on all platforms (TBD)) * Directory of executable Removing `-setdir` and `-useexedir` as redundant (both can be replaced with `-additionaldir` option).
30 lines
454 B
CMake
30 lines
454 B
CMake
set(HEADERS
|
|
lnxapp.h
|
|
registry.h)
|
|
set(CPPS
|
|
lnxcon.cpp
|
|
lnxcon_raw.cpp
|
|
lnxapp.cpp
|
|
lnxcon_null.cpp
|
|
lnxdata.cpp
|
|
registry.cpp
|
|
)
|
|
|
|
add_library(linux STATIC ${HEADERS} ${CPPS})
|
|
target_link_libraries(linux PRIVATE
|
|
cfile
|
|
logger
|
|
)
|
|
target_include_directories(linux PUBLIC
|
|
$<BUILD_INTERFACE:
|
|
${PROJECT_SOURCE_DIR}/linux
|
|
>
|
|
${PROJECT_BINARY_DIR}/lib
|
|
${SDL3_INCLUDE_DIRS}
|
|
)
|
|
target_link_libraries(linux PRIVATE
|
|
ddebug
|
|
ddio
|
|
SDL3::SDL3
|
|
)
|