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

16 lines
302 B
CMake

set(HEADERS mem.h)
set(CPPS mem.cpp)
add_library(mem STATIC ${HEADERS} ${CPPS})
target_compile_definitions(mem PUBLIC
$<$<BOOL:${ENABLE_MEM_RTL}>:MEM_USE_RTL>
)
target_link_libraries(mem PRIVATE
misc
)
target_include_directories(mem PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/mem
>
)