mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-05-09 12:07:51 +03:00
Precompile sol.hpp in order to reduce compilation time.
This commit is contained in:
parent
4d346fefd6
commit
d3df3efaf1
5 changed files with 16 additions and 4 deletions
|
@ -153,9 +153,12 @@ target_link_libraries(openmw
|
|||
"osg-ffmpeg-videoplayer"
|
||||
"oics"
|
||||
components
|
||||
${LUA_LIBRARIES}
|
||||
)
|
||||
|
||||
if (CMAKE_VERSION VERSION_GREATER_EQUAL 3.16)
|
||||
target_precompile_headers(openmw PRIVATE ${SOL_INCLUDE_DIR}/sol/sol.hpp)
|
||||
endif ()
|
||||
|
||||
if (ANDROID)
|
||||
target_link_libraries(openmw EGL android log z)
|
||||
endif (ANDROID)
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
#ifndef stderr
|
||||
int stderr = 0; // Hack: fix linker error
|
||||
#endif
|
||||
|
||||
#include "SDL_main.h"
|
||||
#include <SDL_gamecontroller.h>
|
||||
|
|
|
@ -70,7 +70,7 @@ if (GTEST_FOUND AND GMOCK_FOUND)
|
|||
|
||||
openmw_add_executable(openmw_test_suite openmw_test_suite.cpp ${UNITTEST_SRC_FILES})
|
||||
|
||||
target_link_libraries(openmw_test_suite ${GMOCK_LIBRARIES} components ${LUA_LIBRARIES})
|
||||
target_link_libraries(openmw_test_suite ${GMOCK_LIBRARIES} components)
|
||||
# Fix for not visible pthreads functions for linker with glibc 2.15
|
||||
if (UNIX AND NOT APPLE)
|
||||
target_link_libraries(openmw_test_suite ${CMAKE_THREAD_LIBS_INIT})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue