openmohaa/code/tiki/CMakeLists.txt
smallmodel 28bdd1b2b3
Made the renderer modular and loadable
This removes coupling between the renderer and UI/client functions. An option USE_RENDERER_DLOPEN was added to specify whether a renderer module should be compiled and loaded, instead of integrating the renderer into the executable directly. This opens the door for a new renderer
2024-12-06 00:15:19 +01:00

28 lines
No EOL
616 B
CMake

cmake_minimum_required(VERSION 3.12)
project(omohtiki)
set(SOURCES_TIKI
"./tiki_anim.cpp"
"./tiki_cache.cpp"
"./tiki_commands.cpp"
"./tiki_files.cpp"
"./tiki_frame.cpp"
"./tiki_imports.cpp"
"./tiki_parse.cpp"
"./tiki_skel.cpp"
"./tiki_surface.cpp"
"./tiki_tag.cpp"
"./tiki_utility.cpp"
)
set(SOURCES_TIKI_COMMON
"../qcommon/tiki_main.cpp"
"../qcommon/tiki_script.cpp"
)
add_library(omohtiki STATIC ${SOURCES_TIKI} ${SOURCES_TIKI_COMMON})
target_compile_features(omohtiki PRIVATE cxx_nullptr)
target_compile_features(omohtiki PRIVATE c_variadic_macros)
target_link_libraries(omohtiki PUBLIC qcommon)