Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
KennethVanhoey
CGoGN
Commits
61c2f883
Commit
61c2f883
authored
Jan 06, 2012
by
Sylvain Thery
Browse files
add an install procedure (make install)
parent
53ce7937
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
61c2f883
...
...
@@ -14,7 +14,7 @@ SET ( BUILD_SHARED_LIBS OFF CACHE BOOL "if used all library are build as shared
SET
(
WITH_ASSIMP ON CACHE BOOL
"build CGoGN with Assimp "
)
SET
(
WITH_ZINRI ON CACHE BOOL
"build CGoGN with Zinri lib "
)
SET
(
WITH_QT ON CACHE BOOL
"build CGoGN with Qt lib "
)
#
SET ( WITH_NUMERICAL O
FF
CACHE BOOL "build CGoGN with Numerical libs support ")
SET
(
WITH_NUMERICAL O
N
CACHE BOOL
"build CGoGN with Numerical libs support "
)
IF
(
WIN32
)
set
(
CMAKE_PREFIX_PATH
${
CGoGN_ROOT_DIR
}
/windows_dependencies CACHE STRING
"path to dependencies"
)
...
...
@@ -59,12 +59,14 @@ IF (WITH_ASSIMP)
add_definitions
(
-DWITH_ASSIMP
)
SET
(
CGoGN_EXT_INCLUDES
${
CGoGN_EXT_INCLUDES
}
${
CGoGN_ROOT_DIR
}
/ThirdParty/Assimp/include
)
SET
(
CGoGN_EXT_LIBS
${
CGoGN_EXT_LIBS
}
assimp
)
INSTALL
(
DIRECTORY ThirdParty/Assimp/include DESTINATION .
)
ENDIF
(
WITH_ASSIMP
)
IF
(
WITH_ZINRI
)
add_definitions
(
-DWITH_ZINRI
)
SET
(
CGoGN_EXT_INCLUDES
${
CGoGN_EXT_INCLUDES
}
${
CGoGN_ROOT_DIR
}
/ThirdParty/Zinri
)
SET
(
CGoGN_EXT_LIBS
${
CGoGN_EXT_LIBS
}
Zinri
)
INSTALL
(
DIRECTORY ThirdParty/Zinri/ DESTINATION include FILES_MATCHING PATTERN
"*.h"
)
ENDIF
(
WITH_ZINRI
)
IF
(
WITH_QT
)
...
...
@@ -83,6 +85,12 @@ ENDIF (WITH_QT)
# SET (CGoGN_NUMERICAL_LIBS f2c blas numerical lapack)
#ENDIF (WITH_NUMERICAL)
IF
(
WITH_NUMERICAL
)
INSTALL
(
FILES ThirdParty/Numerical/UFconfig/UFconfig.h DESTINATION include
)
INSTALL
(
DIRECTORY ThirdParty/Numerical/ DESTINATION include FILES_MATCHING PATTERN
"*.h"
)
INSTALL
(
DIRECTORY ThirdParty/Numerical/ DESTINATION include FILES_MATCHING PATTERN
"*.hpp"
)
ENDIF
(
WITH_NUMERICAL
)
# qq definition specifiques pour mac
IF
(
APPLE
)
# attention a changer pour chercher la bonne version automatiquement
...
...
@@ -105,3 +113,8 @@ ELSE(WIN32)
add_subdirectory
(
${
CGoGN_ROOT_DIR
}
/Apps Apps
)
ENDIF
(
WIN32
)
INSTALL
(
DIRECTORY
${
CGoGN_ROOT_DIR
}
/include
${
CGoGN_ROOT_DIR
}
/lib
${
CGoGN_ROOT_DIR
}
/bin DESTINATION .
)
INSTALL
(
DIRECTORY ThirdParty/glm/glm DESTINATION include
)
INSTALL
(
DIRECTORY cmake_modules DESTINATION .
)
INSTALL
(
FILES apps_cmake.txt DESTINATION .
)
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment