Descent3/libmve/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
397 B
CMake

set(HEADERS
decoders.h
movie_sound.h
mve_audio.h
mvelib.h
sound_interface.h)
set(CPPS
decoder8.cpp
decoder16.cpp
movie_sound.cpp
mve_audio.cpp
mvelib.cpp
mveplay.cpp
)
add_library(libmve STATIC ${HEADERS} ${CPPS})
target_link_libraries(libmve PRIVATE
ddio
SDL2::SDL2
)
target_include_directories(libmve PUBLIC
$<BUILD_INTERFACE:
${PROJECT_SOURCE_DIR}/libmve
>
)