|
@@ -1,4 +1,4 @@
|
|
|
-cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
|
|
|
+cmake_minimum_required(VERSION 3.16 FATAL_ERROR)
|
|
|
|
|
|
project(JoltPhysics CXX)
|
|
|
|
|
@@ -182,7 +182,8 @@ if (TARGET_UNIT_TESTS)
|
|
|
include(${PHYSICS_REPO_ROOT}/UnitTests/UnitTests.cmake)
|
|
|
add_executable(UnitTests ${UNIT_TESTS_SRC_FILES})
|
|
|
target_include_directories(UnitTests PUBLIC ${UNIT_TESTS_ROOT})
|
|
|
- target_link_libraries (UnitTests LINK_PUBLIC Jolt)
|
|
|
+ target_link_libraries(UnitTests LINK_PUBLIC Jolt)
|
|
|
+ target_precompile_headers(UnitTests PRIVATE ${JOLT_PHYSICS_ROOT}/Jolt.h)
|
|
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
|
|
target_link_options(UnitTests PUBLIC "/SUBSYSTEM:CONSOLE")
|
|
|
endif()
|
|
@@ -207,7 +208,7 @@ if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
|
|
include(${PHYSICS_REPO_ROOT}/HelloWorld/HelloWorld.cmake)
|
|
|
add_executable(HelloWorld ${HELLO_WORLD_SRC_FILES})
|
|
|
target_include_directories(HelloWorld PUBLIC ${HELLO_WORLD_ROOT})
|
|
|
- target_link_libraries (HelloWorld LINK_PUBLIC Jolt)
|
|
|
+ target_link_libraries(HelloWorld LINK_PUBLIC Jolt)
|
|
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
|
|
target_link_options(HelloWorld PUBLIC "/SUBSYSTEM:CONSOLE")
|
|
|
endif()
|
|
@@ -218,7 +219,7 @@ if (NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "WindowsStore")
|
|
|
include(${PHYSICS_REPO_ROOT}/PerformanceTest/PerformanceTest.cmake)
|
|
|
add_executable(PerformanceTest ${PERFORMANCE_TEST_SRC_FILES})
|
|
|
target_include_directories(PerformanceTest PUBLIC ${PERFORMANCE_TEST_ROOT})
|
|
|
- target_link_libraries (PerformanceTest LINK_PUBLIC Jolt)
|
|
|
+ target_link_libraries(PerformanceTest LINK_PUBLIC Jolt)
|
|
|
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Windows")
|
|
|
target_link_options(PerformanceTest PUBLIC "/SUBSYSTEM:CONSOLE")
|
|
|
endif()
|