Lines 1-48
Link Here
|
1 |
--- CMakeLists.txt.orig 2017-09-06 16:18:14 UTC |
1 |
--- CMakeLists.txt.orig 2017-09-06 16:18:14 UTC |
2 |
+++ CMakeLists.txt |
2 |
+++ CMakeLists.txt |
3 |
@@ -11,11 +11,11 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CO |
3 |
@@ -11,11 +11,11 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CO |
4 |
endif() |
4 |
endif() |
5 |
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE) |
5 |
string(TOUPPER "${CMAKE_BUILD_TYPE}" U_CMAKE_BUILD_TYPE) |
6 |
|
6 |
|
7 |
-if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ext/nanogui/ext/glfw") |
7 |
-if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ext/nanogui/ext/glfw") |
8 |
- message(FATAL_ERROR "The Instant Meshes dependency repositories (NanoGUI, GLFW, etc.) are missing! " |
8 |
- message(FATAL_ERROR "The Instant Meshes dependency repositories (NanoGUI, GLFW, etc.) are missing! " |
9 |
- "You probably did not clone the project with --recursive. It is possible to recover " |
9 |
- "You probably did not clone the project with --recursive. It is possible to recover " |
10 |
- "by calling \"git submodule update --init --recursive\"") |
10 |
- "by calling \"git submodule update --init --recursive\"") |
11 |
-endif() |
11 |
-endif() |
12 |
+#if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ext/nanogui/ext/glfw") |
12 |
+#if(NOT IS_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/ext/nanogui/ext/glfw") |
13 |
+# message(FATAL_ERROR "The Instant Meshes dependency repositories (NanoGUI, GLFW, etc.) are missing! " |
13 |
+# message(FATAL_ERROR "The Instant Meshes dependency repositories (NanoGUI, GLFW, etc.) are missing! " |
14 |
+# "You probably did not clone the project with --recursive. It is possible to recover " |
14 |
+# "You probably did not clone the project with --recursive. It is possible to recover " |
15 |
+# "by calling \"git submodule update --init --recursive\"") |
15 |
+# "by calling \"git submodule update --init --recursive\"") |
16 |
+#endif() |
16 |
+#endif() |
17 |
|
17 |
|
18 |
# Enable folders for projects in Visual Studio |
18 |
# Enable folders for projects in Visual Studio |
19 |
if (CMAKE_GENERATOR MATCHES "Visual Studio") |
19 |
if (CMAKE_GENERATOR MATCHES "Visual Studio") |
20 |
@@ -66,7 +66,7 @@ set(NANOGUI_BUILD_EXAMPLE OFF CACHE BOOL |
20 |
@@ -66,7 +66,7 @@ set(NANOGUI_BUILD_EXAMPLE OFF CACHE BOOL |
21 |
set(NANOGUI_BUILD_SHARED OFF CACHE BOOL " " FORCE) |
21 |
set(NANOGUI_BUILD_SHARED OFF CACHE BOOL " " FORCE) |
22 |
set(NANOGUI_BUILD_PYTHON OFF CACHE BOOL " " FORCE) |
22 |
set(NANOGUI_BUILD_PYTHON OFF CACHE BOOL " " FORCE) |
23 |
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/nanogui ext_build/nanogui) |
23 |
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/nanogui ext_build/nanogui) |
24 |
-set_property(TARGET nanogui glfw glfw_objects bin2c PROPERTY FOLDER "dependencies") |
24 |
-set_property(TARGET nanogui glfw glfw_objects bin2c PROPERTY FOLDER "dependencies") |
25 |
+set_property(TARGET nanogui bin2c PROPERTY FOLDER "dependencies") |
25 |
+set_property(TARGET nanogui bin2c PROPERTY FOLDER "dependencies") |
26 |
|
26 |
|
27 |
# Build TBB |
27 |
# Build TBB |
28 |
set(TBB_BUILD_STATIC ON CACHE BOOL " " FORCE) |
28 |
set(TBB_BUILD_STATIC ON CACHE BOOL " " FORCE) |
29 |
@@ -75,8 +75,8 @@ set(TBB_BUILD_TBBMALLOC OFF CACHE BOOL " |
|
|
30 |
set(TBB_BUILD_TBBMALLOC_PROXY OFF CACHE BOOL " " FORCE) |
31 |
set(TBB_BUILD_TESTS OFF CACHE BOOL " " FORCE) |
32 |
|
33 |
-add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/tbb ext_build/tbb) |
34 |
-set_property(TARGET tbb_static tbb_def_files PROPERTY FOLDER "dependencies") |
35 |
+#add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/tbb ext_build/tbb) |
36 |
+#set_property(TARGET tbb_static tbb_def_files PROPERTY FOLDER "dependencies") |
37 |
|
38 |
# Compile instant meshes with various compiler warnings turned on |
39 |
if(MSVC) |
40 |
@@ -173,7 +173,7 @@ add_executable(InstantMeshes MACOSX_BUND |
41 |
${EXTRA_SOURCE}) |
42 |
|
43 |
add_definitions(${NANOGUI_EXTRA_DEFS}) |
44 |
-target_link_libraries(InstantMeshes tbb_static nanogui ${NANOGUI_EXTRA_LIBS}) |
45 |
+target_link_libraries(InstantMeshes tbb nanogui ${NANOGUI_EXTRA_LIBS}) |
46 |
|
47 |
set_target_properties(InstantMeshes PROPERTIES OUTPUT_NAME "Instant Meshes") |
48 |
|