diff --git a/code/Demos/CMakeLists.txt b/code/Demos/CMakeLists.txt index 324c2ae..6f2aed1 100644 --- a/code/Demos/CMakeLists.txt +++ b/code/Demos/CMakeLists.txt @@ -8,7 +8,7 @@ file(COPY ${CMAKE_SOURCE_DIR}/.clang-tidy DESTINATION ${CMAKE_CURRENT_BINARY_DIR add_executable(Demos ${DEMOS_SOURCES} ${DEMOS_HEADERS}) -target_precompile_headers(Demos PUBLIC ${CMAKE_CURRENT_INCLUDE_DIR}/Engine.hpp) +target_precompile_headers(Demos PRIVATE ../Engine/include/Engine.hpp) if(DEFINED EMSCRIPTEN) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -s EXPORTED_FUNCTIONS='_main' -s EXPORT_NAME=\"'WasmModuleDemos'\"") diff --git a/code/Test/CMakeLists.txt b/code/Test/CMakeLists.txt index 4572fa3..68d7a13 100644 --- a/code/Test/CMakeLists.txt +++ b/code/Test/CMakeLists.txt @@ -8,7 +8,7 @@ file(COPY ${CMAKE_SOURCE_DIR}/.clang-tidy DESTINATION ${CMAKE_CURRENT_BINARY_DIR add_executable(Test ${TEST_SOURCES} ${TEST_HEADERS}) -target_precompile_headers(Test PRIVATE include/TestPch.hpp ${CMAKE_CURRENT_INCLUDE_DIR}/Engine.hpp) +target_precompile_headers(Test PRIVATE include/TestPch.hpp ../Engine/include/Engine.hpp) if(DEFINED EMSCRIPTEN) set(CMAKE_EXECUTABLE_SUFFIX ".html") diff --git a/code/build-native.bat b/code/build-native.bat index a44d2d5..8554943 100644 --- a/code/build-native.bat +++ b/code/build-native.bat @@ -12,7 +12,7 @@ cd build-native call cmake .. -G "Ninja" -DCMAKE_TOOLCHAIN_FILE=%VCPKG_PATH%/scripts/buildsystems/vcpkg.cmake -DVCPKG_TARGET_TRIPLET=x64-windows -DCMAKE_BUILD_TYPE=%BUILD_TYPE% call cmake --build . --config %BUILD_TYPE% -@REM cd Test -@REM call Test -@REM cd ../Demos -@REM call Demos \ No newline at end of file +cd Test +call Test +cd ../Demos +call Demos \ No newline at end of file