Commit 45cfdc80 authored by Sylvain Thery's avatar Sylvain Thery

add prefix to CMake option's vars for easy reading

parent 6f309de4
...@@ -2,26 +2,6 @@ cmake_minimum_required(VERSION 2.8) ...@@ -2,26 +2,6 @@ cmake_minimum_required(VERSION 2.8)
project(benches) project(benches)
#SET(CMAKE_BUILD_TYPE Release)
#SET(CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")
# define includes path
include_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CGoGN_ROOT_DIR}/include
${CGoGN_EXT_INCLUDES}
)
# define libs path
#IF(WIN32)
# link_directories( ${CGoGN_ROOT_DIR}/lib/$(ConfigurationName) ${Boost_LIBRARY_DIRS} )
#ELSE(WIN32)
# link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
#ENDIF(WIN32)
add_executable(bench_trav bench_trav.cpp ) add_executable(bench_trav bench_trav.cpp )
target_link_libraries( bench_trav ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) target_link_libraries( bench_trav ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
......
IF (ONELIB) IF (CGoGN_ONELIB)
SET(CGoGN_LIBS cgogn) SET(CGoGN_LIBS cgogn)
ELSE (ONELIB) ELSE ()
SET(CGoGN_LIBS algo topology container utils) SET(CGoGN_LIBS algo) # topology container utils include by dependencies
ENDIF (ONELIB) ENDIF ()
IF (WIN32) IF (WIN32)
link_directories( ${CGoGN_ROOT_DIR}/lib/${ConfigurationName} ${Boost_LIBRARY_DIRS}) link_directories( ${CGoGN_ROOT_DIR}/lib/${ConfigurationName})
SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/) # Release/Debug added automatically by visual SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/) # Release/Debug added automatically by visual
ELSE() ELSE()
link_directories( ${CGoGN_ROOT_DIR}/lib/${CMAKE_BUILD_TYPE} ) link_directories( ${CGoGN_ROOT_DIR}/lib/${CMAKE_BUILD_TYPE} )
SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/${CMAKE_BUILD_TYPE} ) SET(EXECUTABLE_OUTPUT_PATH ${CGoGN_ROOT_DIR}/bin/${CMAKE_BUILD_TYPE} )
ENDIF() ENDIF()
include_directories( #include_directories(
${CGoGN_ROOT_DIR}/include # ${CGoGN_ROOT_DIR}/include
${CGoGN_EXT_INCLUDES}) # ${CGoGN_EXT_INCLUDES})
IF (COMPILE_SANDBOX) IF (CGoGN_COMPILE_SANDBOX)
add_subdirectory(SandBox) add_subdirectory(SandBox)
ENDIF() ENDIF()
IF (COMPILE_EXAMPLES AND WITH_QT) IF (CGoGN_COMPILE_EXAMPLES AND CGoGN_WITH_QT)
add_subdirectory(Examples) add_subdirectory(Examples)
ENDIF() ENDIF()
IF (COMPILE_TUTOS) IF (CGoGN_COMPILE_TUTOS)
add_subdirectory(Tuto) add_subdirectory(Tuto)
ENDIF() ENDIF()
IF (COMPILE_BENCHES) IF (CGoGN_COMPILE_BENCHES)
add_subdirectory(Benches) add_subdirectory(Benches)
ENDIF() ENDIF()
IF (COMPILE_TESTS) IF (CGoGN_COMPILE_TESTS)
add_subdirectory(Tests) add_subdirectory(Tests)
ENDIF() ENDIF()
#IF (WITH_QT)
# add_subdirectory(Tuto)
# add_subdirectory(Examples)
# IF (NOT DONOT_COMPILE_SANDBOX)
# add_subdirectory(SandBox)
# ENDIF (NOT DONOT_COMPILE_SANDBOX)
#ENDIF (WITH_QT)
#add_subdirectory(Tests)
#add_subdirectory(Benches)
#add_subdirectory(Tuto/Traversals)
#add_subdirectory(Tuto/Attributes)
#add_subdirectory(Tuto/Markers)
#add_subdirectory(Tuto/Boundary)
#add_subdirectory(Tuto/Modelling)
...@@ -2,20 +2,10 @@ cmake_minimum_required(VERSION 2.8) ...@@ -2,20 +2,10 @@ cmake_minimum_required(VERSION 2.8)
project(examples) project(examples)
#SET(CMAKE_BUILD_TYPE Release)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")
# define includes path # define includes path
include_directories(${CMAKE_CURRENT_BINARY_DIR}) include_directories(${CMAKE_CURRENT_BINARY_DIR})
# define libs path
#IF(WIN32)
# link_directories( ${CGoGN_ROOT_DIR}/lib/$(ConfigurationName) ${Boost_LIBRARY_DIRS} )
#ELSE(WIN32)
# link_directories( ${CGoGN_ROOT_DIR}/lib/Release )
#ENDIF(WIN32)
#define exec to compile #define exec to compile
......
...@@ -3,23 +3,6 @@ cmake_minimum_required(VERSION 2.8) ...@@ -3,23 +3,6 @@ cmake_minimum_required(VERSION 2.8)
project(SandBox) project(SandBox)
#SET (CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# ${CGoGN_ROOT_DIR}/include
# ${CGoGN_EXT_INCLUDES})
# define libs path
#IF(WIN32)
# link_directories(${CGoGN_ROOT_DIR}/lib/$(ConfigurationName)
# ${Boost_LIBRARY_DIRS})
#ELSE(WIN32)
# link_directories(${CGoGN_ROOT_DIR}/lib/Release ${CGoGN_ROOT_DIR}/lib/Debug)
#ENDIF(WIN32)
#define exec to compile
add_executable(multi_att multi_att.cpp) add_executable(multi_att multi_att.cpp)
target_link_libraries(multi_att ${CGoGN_LIBS} ${CGoGN_EXT_LIBS}) target_link_libraries(multi_att ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
...@@ -27,7 +10,10 @@ target_link_libraries(multi_att ${CGoGN_LIBS} ${CGoGN_EXT_LIBS}) ...@@ -27,7 +10,10 @@ target_link_libraries(multi_att ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
add_executable(trav3_test trav3_test.cpp) add_executable(trav3_test trav3_test.cpp)
target_link_libraries(trav3_test ${CGoGN_LIBS} ${CGoGN_EXT_LIBS}) target_link_libraries(trav3_test ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
IF (WITH_QT) IF (CGoGN_WITH_QT)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
QT4_WRAP_CPP(tilings_moc tilings.h) QT4_WRAP_CPP(tilings_moc tilings.h)
add_executable(tilings tilings.cpp ${tilings_moc}) add_executable(tilings tilings.cpp ${tilings_moc})
target_link_libraries(tilings ${CGoGN_LIBS} ${CGoGN_EXT_LIBS}) target_link_libraries(tilings ${CGoGN_LIBS} ${CGoGN_EXT_LIBS})
......
...@@ -2,23 +2,7 @@ cmake_minimum_required(VERSION 2.6) ...@@ -2,23 +2,7 @@ cmake_minimum_required(VERSION 2.6)
project(testing) project(testing)
#SET(CMAKE_BUILD_TYPE Debug)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# ${CGoGN_ROOT_DIR}/include
# ${CGoGN_EXT_INCLUDES}
#)
#IF(WIN32)
# link_directories(
# ${CGoGN_ROOT_DIR}/lib/$(ConfigurationName)
# ${Boost_LIBRARY_DIRS} )
#ELSE(WIN32)
# link_directories(
# ${CGoGN_ROOT_DIR}/lib/Debug
# ${CGoGN_ROOT_DIR}/lib/Release )
#ENDIF(WIN32)
#define exec to compile #define exec to compile
......
...@@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 2.8) ...@@ -2,7 +2,6 @@ cmake_minimum_required(VERSION 2.8)
project(Tuto_Attributes) project(Tuto_Attributes)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable( simple_attribs simple_attribs.cpp) add_executable( simple_attribs simple_attribs.cpp)
target_link_libraries( simple_attribs ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) target_link_libraries( simple_attribs ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
...@@ -12,7 +11,9 @@ add_executable( multi_attribs multi_attribs.cpp) ...@@ -12,7 +11,9 @@ add_executable( multi_attribs multi_attribs.cpp)
target_link_libraries( multi_attribs ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) target_link_libraries( multi_attribs ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
IF(WITH_QT) IF(CGoGN_WITH_QT)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
QT4_WRAP_UI(vbo_attribs_ui vbo_attribs.ui) QT4_WRAP_UI(vbo_attribs_ui vbo_attribs.ui)
QT4_WRAP_CPP(vbo_attribs_moc vbo_attribs.h) QT4_WRAP_CPP(vbo_attribs_moc vbo_attribs.h)
......
...@@ -3,25 +3,10 @@ cmake_minimum_required(VERSION 2.8) ...@@ -3,25 +3,10 @@ cmake_minimum_required(VERSION 2.8)
project(Tutos) project(Tutos)
#SET (CMAKE_BUILD_TYPE Debug)
#SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DNOTOPOWARNING")
if(APPLE) if(APPLE)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-overloaded-virtual") set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -Wno-overloaded-virtual")
endif() endif()
include_directories(${CMAKE_CURRENT_BINARY_DIR})
# ${CGoGN_ROOT_DIR}/include
# ${CGoGN_EXT_INCLUDES})
# define libs path
#IF(WIN32)
# link_directories(${CGoGN_ROOT_DIR}/lib/$(ConfigurationName)
# ${Boost_LIBRARY_DIRS})
#ELSE(WIN32)
# link_directories(${CGoGN_ROOT_DIR}/lib/Release ${CGoGN_ROOT_DIR}/lib/Debug)
#ENDIF(WIN32)
add_subdirectory(Boundary) add_subdirectory(Boundary)
add_subdirectory(Modelling) add_subdirectory(Modelling)
add_subdirectory(Markers) add_subdirectory(Markers)
...@@ -29,7 +14,9 @@ add_subdirectory(Traversals) ...@@ -29,7 +14,9 @@ add_subdirectory(Traversals)
add_subdirectory(Attributes) add_subdirectory(Attributes)
#define exec to compile #define exec to compile
IF (WITH_QT) IF (CGoGN_WITH_QT)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
QT4_WRAP_CPP(tuto1_moc tuto1.h) QT4_WRAP_CPP(tuto1_moc tuto1.h)
add_executable( tuto1 tuto1.cpp ${tuto1_moc}) add_executable( tuto1 tuto1.cpp ${tuto1_moc})
...@@ -70,13 +57,13 @@ IF (WITH_QT) ...@@ -70,13 +57,13 @@ IF (WITH_QT)
target_link_libraries( tuto_histo target_link_libraries( tuto_histo
${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
ENDIF()
#QT4_WRAP_UI( show_traversors_ui show_traversors.ui ) # QT4_WRAP_CPP(tp_master_moc tp_master.h)
#QT4_WRAP_CPP(show_traversors_moc show_traversors.h) # add_executable( tp_master tp_master.cpp ${tp_master_moc})
#add_executable( show_traversors show_traversors.cpp ${show_traversors_ui} ${show_traversors_moc}) # target_link_libraries( tp_master ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
#target_link_libraries( show_traversors
# ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
ENDIF()
add_executable( tuto_subdivision tuto_subdivision.cpp) add_executable( tuto_subdivision tuto_subdivision.cpp)
target_link_libraries( tuto_subdivision target_link_libraries( tuto_subdivision
...@@ -90,22 +77,3 @@ add_executable( tuto_dual3 tuto_dual3.cpp) ...@@ -90,22 +77,3 @@ add_executable( tuto_dual3 tuto_dual3.cpp)
target_link_libraries( tuto_dual3 target_link_libraries( tuto_dual3
${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
#QT4_WRAP_CPP(tp_master_moc tp_master.h)
#add_executable( tp_master tp_master.cpp ${tp_master_moc})
#target_link_libraries( tp_master
# ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
#BOOST_LIBS macro: allow using compiled boost in windows (see readme)
# -first argument variable that will contain the libs
# -second argument list of boost libs separated by ; in " "
# exemple: BOOST_LIBS(boost_lib_lists "boost_thread-mt;boost_iostreams-mt")
#BOOST_LIBS(boost_lib_lists "boost_thread-mt")
#QT4_WRAP_CPP(tuto_mt_moc tuto_mt.h)
#add_executable( tuto_mt tuto_mt.cpp ${tuto_mt_moc})
#target_link_libraries( tuto_mt
# ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ${Boost_THREAD_LIBRARY})
...@@ -2,20 +2,23 @@ cmake_minimum_required(VERSION 2.8) ...@@ -2,20 +2,23 @@ cmake_minimum_required(VERSION 2.8)
project(Tuto_Modelling) project(Tuto_Modelling)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable( basics basics.cpp) add_executable( basics basics.cpp)
target_link_libraries( basics ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) target_link_libraries( basics ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
QT4_WRAP_UI( tuto_oper2_ui tuto_oper2.ui ) IF (CGoGN_WITH_QT)
QT4_WRAP_CPP(tuto_oper2_moc tuto_oper2.h)
add_executable( tuto_oper2 tuto_oper2.cpp ${tuto_oper2_ui} ${tuto_oper2_moc})
target_link_libraries( tuto_oper2
${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
include_directories(${CMAKE_CURRENT_BINARY_DIR})
QT4_WRAP_UI( tuto_oper3_ui tuto_oper3.ui ) QT4_WRAP_UI( tuto_oper2_ui tuto_oper2.ui )
QT4_WRAP_CPP(tuto_oper3_moc tuto_oper3.h) QT4_WRAP_CPP(tuto_oper2_moc tuto_oper2.h)
add_executable( tuto_oper3 tuto_oper3.cpp ${tuto_oper3_ui} ${tuto_oper3_moc}) add_executable( tuto_oper2 tuto_oper2.cpp ${tuto_oper2_ui} ${tuto_oper2_moc})
target_link_libraries( tuto_oper3 target_link_libraries( tuto_oper2
${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
QT4_WRAP_UI( tuto_oper3_ui tuto_oper3.ui )
QT4_WRAP_CPP(tuto_oper3_moc tuto_oper3.h)
add_executable( tuto_oper3 tuto_oper3.cpp ${tuto_oper3_ui} ${tuto_oper3_moc})
target_link_libraries( tuto_oper3
${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
ENDIF()
\ No newline at end of file
...@@ -2,24 +2,27 @@ cmake_minimum_required(VERSION 2.8) ...@@ -2,24 +2,27 @@ cmake_minimum_required(VERSION 2.8)
project(Tuto_Traversals) project(Tuto_Traversals)
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_executable( traverse_cells traverse_cells.cpp) IF (CGoGN_WITH_QT)
target_link_libraries( traverse_cells ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
add_executable( traverse_neighbours traverse_neighbours.cpp) include_directories(${CMAKE_CURRENT_BINARY_DIR})
target_link_libraries( traverse_neighbours ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
add_executable( traverse_attributes traverse_attributes.cpp) add_executable( traverse_cells traverse_cells.cpp)
target_link_libraries( traverse_attributes ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} ) target_link_libraries( traverse_cells ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
QT4_WRAP_UI( show_traversors_ui2 show_traversors2.ui ) add_executable( traverse_neighbours traverse_neighbours.cpp)
QT4_WRAP_CPP(show_traversors_moc2 show_traversors2.h) target_link_libraries( traverse_neighbours ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
add_executable( show_traversors2 show_traversors2.cpp ${show_traversors_ui2} ${show_traversors_moc2})
target_link_libraries( show_traversors2 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
QT4_WRAP_UI( show_traversors_ui3 show_traversors3.ui ) add_executable( traverse_attributes traverse_attributes.cpp)
QT4_WRAP_CPP(show_traversors_moc3 show_traversors3.h) target_link_libraries( traverse_attributes ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
add_executable( show_traversors3 show_traversors3.cpp ${show_traversors_ui3} ${show_traversors_moc3})
target_link_libraries( show_traversors3 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
QT4_WRAP_UI( show_traversors_ui2 show_traversors2.ui )
QT4_WRAP_CPP(show_traversors_moc2 show_traversors2.h)
add_executable( show_traversors2 show_traversors2.cpp ${show_traversors_ui2} ${show_traversors_moc2})
target_link_libraries( show_traversors2 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
QT4_WRAP_UI( show_traversors_ui3 show_traversors3.ui )
QT4_WRAP_CPP(show_traversors_moc3 show_traversors3.h)
add_executable( show_traversors3 show_traversors3.cpp ${show_traversors_ui3} ${show_traversors_moc3})
target_link_libraries( show_traversors3 ${CGoGN_LIBS} ${CGoGN_EXT_LIBS} )
ENDIF()
...@@ -67,7 +67,7 @@ file( ...@@ -67,7 +67,7 @@ file(
${CGoGN_SRC_DIR}/include/Utils/Shaders/*.h ${CGoGN_SRC_DIR}/include/Utils/Shaders/*.h
) )
IF(WITH_QT) IF(CGoGN_WITH_QT)
file( file(
GLOB GLOB
files_utils_qt files_utils_qt
...@@ -105,8 +105,8 @@ file( GLOB_RECURSE ...@@ -105,8 +105,8 @@ file( GLOB_RECURSE
link_directories( ${CGoGN_ROOT_DIR}/lib/${CMAKE_BUILD_TYPE} ) link_directories( ${CGoGN_ROOT_DIR}/lib/${CMAKE_BUILD_TYPE} )
IF (ONELIB) IF (CGoGN_ONELIB)
IF(WITH_QT) IF(CGoGN_WITH_QT)
add_library( cgogn ${files_topology} ${files_container} ${files_algo} ${files_utils_withQt}) add_library( cgogn ${files_topology} ${files_container} ${files_algo} ${files_utils_withQt})
ELSE() ELSE()
add_library( cgogn ${files_topology} ${files_container} ${files_algo} ${files_utils} ) add_library( cgogn ${files_topology} ${files_container} ${files_algo} ${files_utils} )
...@@ -115,7 +115,7 @@ IF (ONELIB) ...@@ -115,7 +115,7 @@ IF (ONELIB)
target_link_libraries(cgogn ${CGoGN_EXT_LIBS}) target_link_libraries(cgogn ${CGoGN_EXT_LIBS})
ELSE() ELSE()
IF (WITH_QT) IF (CGoGN_WITH_QT)
add_library( utils ${files_utils_withQt} ) add_library( utils ${files_utils_withQt} )
ELSE() ELSE()
add_library( utils ${files_utils} ) add_library( utils ${files_utils} )
......
...@@ -39,9 +39,9 @@ ...@@ -39,9 +39,9 @@
#include "Algo/Modelisation/voxellisation.h" #include "Algo/Modelisation/voxellisation.h"
#ifdef WITH_ASSIMP #ifdef WITH_ASSIMP
#include "Assimp/assimp.h" #include "assimp.h"
#include "Assimp/aiPostProcess.h" #include "aiPostProcess.h"
#include "Assimp/aiScene.h" #include "aiScene.h"
#endif #endif
namespace CGoGN namespace CGoGN
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
#include "Utils/img3D_IO.h" #include "Utils/img3D_IO.h"
#ifdef WITH_ZINRI #ifdef WITH_ZINRI
#include "Zinri/Zinrimage.h" #include "Zinrimage.h"
#endif #endif
namespace CGoGN namespace CGoGN
......
...@@ -15,21 +15,21 @@ INCLUDE(${CGoGN_ROOT_DIR}/cmake_modules/functions.cmake) ...@@ -15,21 +15,21 @@ INCLUDE(${CGoGN_ROOT_DIR}/cmake_modules/functions.cmake)
# #
# Available options # Available options
# #
SET ( WITH_ASSIMP OFF CACHE BOOL "build CGoGN with Assimp" ) SET ( CGoGN_WITH_ASSIMP OFF CACHE BOOL "build CGoGN with Assimp" )
SET ( WITH_ZINRI OFF CACHE BOOL "build CGoGN with Zinri lib" ) SET ( CGoGN_WITH_ZINRI OFF CACHE BOOL "build CGoGN with Zinri lib" )
SET ( WITH_QT ON CACHE BOOL "build CGoGN with Qt lib" ) SET ( CGoGN_WITH_QT ON CACHE BOOL "build CGoGN with Qt lib" )
SET ( DESIRED_QT_VERSION "4" CACHE STRING "4: QT4/ 5 not yet implemented" ) SET ( CGoGN_DESIRED_QT_VERSION "4" CACHE STRING "4: QT4/ 5 not yet implemented" )
SET ( WITH_PYTHONQT ON CACHE BOOL "build PythonQt (for Schnapps)") SET ( CGoGN_WITH_PYTHONQT ON CACHE BOOL "build PythonQt (for Schnapps)")
SET ( WITH_GLEWMX OFF CACHE BOOL "use multi-contex GLEW" ) SET ( CGoGN_WITH_GLEWMX OFF CACHE BOOL "use multi-contex GLEW" )
SET ( USE_OGL_CORE_PROFILE OFF CACHE BOOL "use OpenGL 3.3 core profile (do not work on mac)" ) SET ( CGoGN_USE_OGL_CORE_PROFILE OFF CACHE BOOL "use OpenGL 3.3 core profile (do not work on mac)" )
SET ( COMPILE_EXAMPLES OFF CACHE BOOL "compile examples" ) SET ( CGoGN_COMPILE_EXAMPLES OFF CACHE BOOL "compile examples" )
SET ( COMPILE_TUTOS OFF CACHE BOOL "compile tutorials" ) SET ( CGoGN_COMPILE_TUTOS OFF CACHE BOOL "compile tutorials" )
SET ( COMPILE_TESTS OFF CACHE BOOL "compile tests" ) SET ( CGoGN_COMPILE_TESTS OFF CACHE BOOL "compile tests" )
SET ( COMPILE_BENCHES OFF CACHE BOOL "compile benches" ) SET ( CGoGN_COMPILE_BENCHES OFF CACHE BOOL "compile benches" )
SET ( COMPILE_SANDBOX OFF CACHE BOOL "compile all in sandbox" ) SET ( CGoGN_COMPILE_SANDBOX OFF CACHE BOOL "compile all in sandbox" )
SET ( ASSERT_ACTIVED OFF CACHE BOOL "assertion activated") SET ( CGoGN_ASSERT_ACTIVED OFF CACHE BOOL "assertion activated")
SET ( ONELIB OFF CACHE BOOL "build CGoGN in one lib" ) SET ( CGoGN_ONELIB OFF CACHE BOOL "build CGoGN in one lib" )
IF (WIN32) IF (WIN32)
SET ( BUILD_SHARED_LIBS OFF CACHE BOOL "if used all library are build as shared type (.so/.dylib/.dll)" ) SET ( BUILD_SHARED_LIBS OFF CACHE BOOL "if used all library are build as shared type (.so/.dylib/.dll)" )
SET ( CMAKE_CONFIGURATION_TYPES Release Debug) SET ( CMAKE_CONFIGURATION_TYPES Release Debug)
...@@ -56,15 +56,15 @@ ENDIF() ...@@ -56,15 +56,15 @@ ENDIF()
FIND_PACKAGE(OpenGL REQUIRED) FIND_PACKAGE(OpenGL REQUIRED)
FIND_PACKAGE(ZLIB REQUIRED) FIND_PACKAGE(ZLIB REQUIRED)
FIND_PACKAGE(GLEW REQUIRED) FIND_PACKAGE(GLEW REQUIRED)
IF (WITH_QT) IF (CGoGN_WITH_QT)
SET(QT_USE_QTCORE TRUE) SET(QT_USE_QTCORE TRUE)
SET(QT_USE_QTOPENGL TRUE) SET(QT_USE_QTOPENGL TRUE)
SET(QT_USE_QTSVG TRUE) SET(QT_USE_QTSVG TRUE)
SET(QT_USE_QTXML TRUE ) SET(QT_USE_QTXML TRUE )
FIND_PACKAGE(Qt REQUIRED) FIND_PACKAGE(Qt REQUIRED)
ELSE (WITH_QT) ELSE ()
FIND_PACKAGE(DevIL REQUIRED) FIND_PACKAGE(DevIL REQUIRED)
ENDIF(WITH_QT) ENDIF()
IF (NOT WIN32) IF (NOT WIN32)
FIND_PACKAGE(SuiteSparse REQUIRED) FIND_PACKAGE(SuiteSparse REQUIRED)
ENDIF() ENDIF()
...@@ -92,7 +92,7 @@ endif() ...@@ -92,7 +92,7 @@ endif()
# #
add_definitions("-DCGOGN_ASSERT_BOOL=${ASSERT_ACTIVED}") add_definitions("-DCGOGN_ASSERT_BOOL=${ASSERT_ACTIVED}")
IF(USE_OGL_CORE_PROFILE) IF(CGoGN_USE_OGL_CORE_PROFILE)
add_definitions("-DUSE_OGL_CORE_PROFILE=1") add_definitions("-DUSE_OGL_CORE_PROFILE=1")
ENDIF() ENDIF()
...@@ -100,17 +100,17 @@ add_definitions("-DGLM_FORCE_RADIANS") ...@@ -100,17 +100,17 @@ add_definitions("-DGLM_FORCE_RADIANS")
add_definitions("-DSHADERPATH=\"${CGoGN_ROOT_DIR}/lib/Shaders/\"") add_definitions("-DSHADERPATH=\"${CGoGN_ROOT_DIR}/lib/Shaders/\"")
IF (WITH_ASSIMP) IF (CGoGN_WITH_ASSIMP)
add_definitions(-DWITH_ASSIMP) add_definitions(-DWITH_ASSIMP)
ENDIF (WITH_ASSIMP) ENDIF ()
IF (WITH_ZINRI) IF (CGoGN_WITH_ZINRI)
add_definitions(-DWITH_ZINRI) add_definitions(-DWITH_ZINRI)
ENDIF (WITH_ZINRI) ENDIF ()
IF (WITH_GLEWMX) IF (CGoGN_WITH_GLEWMX)
ADD_DEFINITIONS(-DGLEW_MX) ADD_DEFINITIONS(-DGLEW_MX)
ENDIF (WITH_GLEWMX) ENDIF ()
# #
...@@ -122,9 +122,9 @@ INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/include) ...@@ -122,9 +122,9 @@ INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/include)
ADD_SUBDIRECTORY(ThirdParty/Tools) ADD_SUBDIRECTORY(ThirdParty/Tools)
IF (WITH_PYTHONQT) IF (CGoGN_WITH_PYTHONQT)
ADD_SUBDIRECTORY(ThirdParty/PythonQt) ADD_SUBDIRECTORY(ThirdParty/PythonQt)
ENDIF (WITH_PYTHONQT) ENDIF ()
ADD_SUBDIRECTORY(ThirdParty/OpenNL) ADD_SUBDIRECTORY(ThirdParty/OpenNL)
INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/OpenNL/src) INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/OpenNL/src)
...@@ -132,20 +132,20 @@ INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/OpenNL/src) ...@@ -132,20 +132,20 @@ INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/OpenNL/src)
ADD_SUBDIRECTORY(ThirdParty/tetgen) ADD_SUBDIRECTORY(ThirdParty/tetgen)
INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/tetgen) INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/tetgen)
IF (WITH_ZINRI) IF (CGoGN_WITH_ZINRI)
ADD_SUBDIRECTORY(ThirdParty/Zinri) ADD_SUBDIRECTORY(ThirdParty/Zinri)
INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/Zinri) INCLUDE_DIRECTORIES(${CGoGN_ROOT_DIR}/ThirdParty/Zinri)
ENDIF(WITH_ZINRI) ENDIF()
IF (WITH_ASSIMP)