Skip to content

Commit

Permalink
added pre compiled header
Browse files Browse the repository at this point in the history
  • Loading branch information
Mia75owo committed Nov 19, 2023
1 parent b65143e commit 56e48ae
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Hurrican/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,12 @@ include_directories(${CMAKE_SOURCE_DIR}/src/SDLPort)
include_directories(${CMAKE_SOURCE_DIR}/3rdparty/glm)
add_executable(${PROJECT_NAME} ${HURRICAN_SOURCES})

# Enable pre compiled headers for way better compile times
OPTION(USE_PRE_COMPILED_HEADERS "Enable pre compiled headers for way better compile times" ON)
if(USE_PRE_COMPILED_HEADERS)
target_precompile_headers(${PROJECT_NAME} PRIVATE src/stdafx.hpp)
endif()

OPTION(OPENMPT "Use OPENMPT for ImpulseTracker music file decoding" OFF)
IF(OPENMPT)
ADD_DEFINITIONS(-DUSE_OPENMPT)
Expand Down

0 comments on commit 56e48ae

Please sign in to comment.