mirror of
https://github.com/OpenSpace/OpenSpace.git
synced 2026-01-06 11:39:49 -06:00
Increase the compile times by including more precompiled headers (#2217)
* Define WIN32_LEAN_AND_MEAN and VC_EXTRALEAN globally * Use forked version of TUIO, some more work on precompiled headers * Improvements for the Kameleon module
This commit is contained in:
@@ -25,23 +25,30 @@
|
||||
include(${OPENSPACE_CMAKE_EXT_DIR}/module_definition.cmake)
|
||||
|
||||
set(HEADER_FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/state.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/transition.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/statemachine.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/state.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/transition.h
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/include/statemachine.h
|
||||
)
|
||||
source_group("Header Files" FILES ${HEADER_FILES})
|
||||
|
||||
set(SOURCE_FILES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/statemachinemodule_lua.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/state.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/transition.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/statemachine.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/statemachinemodule_lua.inl
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/state.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/transition.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/statemachine.cpp
|
||||
)
|
||||
source_group("Source Files" FILES ${SOURCE_FILES})
|
||||
|
||||
create_new_module(
|
||||
"StateMachine"
|
||||
statemachine_module
|
||||
STATIC
|
||||
${HEADER_FILES} ${SOURCE_FILES}
|
||||
"StateMachine"
|
||||
statemachine_module
|
||||
STATIC
|
||||
${HEADER_FILES} ${SOURCE_FILES}
|
||||
)
|
||||
target_precompile_headers(${statemachine_module} PRIVATE
|
||||
<ghoul/glm.h>
|
||||
<ghoul/lua/ghoul_lua.h>
|
||||
<chrono>
|
||||
<filesystem>
|
||||
<string>
|
||||
)
|
||||
|
||||
@@ -25,6 +25,7 @@
|
||||
#include <modules/statemachine/include/statemachine.h>
|
||||
|
||||
#include <openspace/documentation/documentation.h>
|
||||
#include <ghoul/fmt.h>
|
||||
#include <ghoul/logging/logmanager.h>
|
||||
#include <fstream>
|
||||
#include <optional>
|
||||
|
||||
Reference in New Issue
Block a user