1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-27 06:14:09 +00:00
OpenMW/extern/oics/CMakeLists.txt
elsid 5859fd464c
Add option to disable precompiled headers
To be able to use ccache.

Also fix compilation errors appeared due to absence of precompiled
headers.
2024-03-08 02:11:51 +01:00

28 lines
659 B
CMake

add_library(oics STATIC
ICSChannel.cpp
ICSControl.cpp
ICSInputControlSystem.cpp
ICSInputControlSystem_keyboard.cpp
ICSInputControlSystem_mouse.cpp
ICSInputControlSystem_joystick.cpp
ICSPrerequisites.h
)
if(USE_SYSTEM_TINYXML)
target_link_libraries(oics ${TinyXML_LIBRARIES})
else()
add_library(local_tinyxml STATIC
tinyxml.cpp
tinyxmlparser.cpp
tinyxmlerror.cpp
tinystr.cpp
)
target_link_libraries(oics local_tinyxml)
endif()
target_link_libraries(oics SDL2::SDL2)
if (MSVC AND PRECOMPILE_HEADERS_WITH_MSVC)
target_precompile_headers(oics PUBLIC <algorithm> <string>)
endif()