Skip to content

Commit d56611c

Browse files
author
John
authored
Merge pull request #5 from torss/master
Minor CMake fixes / improvements
2 parents 1df1972 + d44ee7c commit d56611c

File tree

6 files changed

+12
-1
lines changed

6 files changed

+12
-1
lines changed

BinaryMeshFitting/CMakeDeps.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# File generated by CMake process
2-
set(sources BinaryChunk.cpp;Chunk.cpp;ChunkGenerator.cpp;ColorMapper.cpp;Core.cpp;CubicChunk.cpp;DebugScene.cpp;DualChunk.cpp;DynamicGLChunk.cpp;Entry.cpp;FPSCamera.cpp;GLChunk.cpp;ImplicitSampler.cpp;MeshProcessor.cpp;NoiseSampler.cpp;PCH.cpp;WorldOctree.cpp;WorldOctreeNode.cpp;WorldStitcher.cpp;WorldWatcher.cpp)
2+
set(sources ChunkGenerator.cpp;ColorMapper.cpp;Core.cpp;DMCChunk.cpp;DebugScene.cpp;DynamicGLChunk.cpp;Entry.cpp;FPSCamera.cpp;Frustum.cpp;GLChunk.cpp;ImplicitSampler.cpp;MeshProcessor.cpp;NoiseSampler.cpp;PCH.cpp;Texture.cpp;WorldOctree.cpp;WorldOctreeNode.cpp;WorldStitcher.cpp;WorldWatcher.cpp)

BinaryMeshFitting/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,10 @@ find_package(GLM REQUIRED)
2020
find_package(Vc REQUIRED)
2121
find_package(FastNoiseSIMD REQUIRED)
2222

23+
set_target_properties(${name} PROPERTIES
24+
VS_DEBUGGER_WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}
25+
)
26+
2327
target_include_directories(${name} PRIVATE
2428
${GLEW_INCLUDE_DIRS}
2529
${GLFW_INCLUDE_DIRS}

BinaryMeshFitting/DMCChunk.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#include "Tables.hpp"
44
#include "NoiseSampler.hpp"
55
#include <iostream>
6+
#include <iomanip>
67
#include <queue>
78
#include <omp.h>
89
#include "MCTable.h"

cmake/Modules/FindFastNoiseSIMD.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Currently very minimal.
22

3+
include(FindPackageHandleStandardArgs)
4+
35
find_path(FastNoiseSIMD_INCLUDE_DIR FastNoiseSIMD.h)
46
set(FastNoiseSIMD_INCLUDE_DIRS ${FastNoiseSIMD_INCLUDE_DIR})
57

cmake/Modules/FindGLFW.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Currently very minimal.
22

3+
include(FindPackageHandleStandardArgs)
4+
35
find_path(GLFW_INCLUDE_DIR GLFW/glfw3.h)
46
set(GLFW_INCLUDE_DIRS ${GLFW_INCLUDE_DIR})
57

cmake/Modules/FindGLM.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Currently very minimal.
22

3+
include(FindPackageHandleStandardArgs)
4+
35
find_path(GLM_INCLUDE_DIR glm/glm.hpp)
46
set(GLM_INCLUDE_DIRS ${GLM_INCLUDE_DIR})
57

0 commit comments

Comments
 (0)