Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thomas Pitiot
CGoGN
Commits
9526242e
Commit
9526242e
authored
Feb 17, 2015
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
windows compile
parent
fdcfe31d
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
458 additions
and
147 deletions
+458
-147
Apps/CMakeLists.txt
Apps/CMakeLists.txt
+1
-0
CMakeLists.txt
CMakeLists.txt
+19
-19
cmake_modules/FindSuiteSparse.cmake
cmake_modules/FindSuiteSparse.cmake
+438
-128
No files found.
Apps/CMakeLists.txt
View file @
9526242e
...
...
@@ -8,6 +8,7 @@ ENDIF ()
IF
(
WIN32
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/
${
ConfigurationName
}
)
link_directories
(
${
CGoGN_ROOT_DIR
}
/windows_dependencies/lib/
)
SET
(
EXECUTABLE_OUTPUT_PATH
${
CGoGN_ROOT_DIR
}
/bin/
)
# Release/Debug added automatically by visual
ELSE
()
link_directories
(
${
CGoGN_ROOT_DIR
}
/lib/
${
CMAKE_BUILD_TYPE
}
)
...
...
CMakeLists.txt
View file @
9526242e
...
...
@@ -52,6 +52,11 @@ ENDIF()
#
# External Libraries (not included a third party libraries)
#
IF
(
WIN32
)
SET
(
CMAKE_PREFIX_PATH
${
CGoGN_ROOT_DIR
}
/windows_dependencies CACHE STRING
"path to dependencies"
)
ENDIF
(
WIN32
)
FIND_PACKAGE
(
OpenGL REQUIRED
)
FIND_PACKAGE
(
ZLIB REQUIRED
)
FIND_PACKAGE
(
GLEW REQUIRED
)
...
...
@@ -66,6 +71,14 @@ ELSE ()
ENDIF
()
IF
(
NOT WIN32
)
FIND_PACKAGE
(
SuiteSparse REQUIRED
)
ELSE
()
set
(
SuiteSparse_SUITESPARSECONFIG_INCLUDE_DIR
${
CGoGN_ROOT_DIR
}
/windows_dependencies/include
)
set
(
SuiteSparse_USE_LAPACK_BLAS ON
)
find_package
(
SuiteSparse QUIET NO_MODULE
)
if
(
NOT SuiteSparse_FOUND
)
set
(
SuiteSparse_VERBOSE ON
)
find_package
(
SuiteSparse REQUIRED
)
# 2nd: Use FindSuiteSparse.cmake module
endif
()
ENDIF
()
#
...
...
@@ -140,7 +153,7 @@ ENDIF ()
ADD_SUBDIRECTORY
(
ThirdParty/TinyXml2
)
INCLUDE_DIRECTORIES
(
${
CGoGN_ROOT_DIR
}
/ThirdParty/TinyXml2
)
IF
(
CGoGN_WITH_QT
)
IF
(
CGoGN_WITH_QT
AND
(
NOT WIN32
)
)
ADD_SUBDIRECTORY
(
ThirdParty/libQGLViewer/QGLViewer
)
INCLUDE_DIRECTORIES
(
${
CGoGN_ROOT_DIR
}
/ThirdParty/libQGLViewer/
)
ENDIF
()
...
...
@@ -193,10 +206,10 @@ LIST(INSERT CGoGN_EXT_INCLUDES 0
${
OPENGL_INCLUDE_DIR
}
${
GLEW_INCLUDE_DIRS
}
${
ZLIB_INCLUDE_DIRS
}
${
SuiteSparse_INCLUDE_DIRS
}
)
# define libs for external libs
IF
(
CGoGN_WITH_ASSIMP
)
LIST
(
APPEND CGoGN_EXT_LIBS assimp
)
ENDIF
()
...
...
@@ -211,25 +224,12 @@ LIST(APPEND CGoGN_EXT_LIBS
${
OPENGL_LIBRARY
}
${
GLEW_LIBRARIES
}
${
ZLIB_LIBRARIES
}
${
SuiteSparse_LIBRARIES
}
)
# W32 specific libraries and includes
IF
(
WIN32
)
INCLUDE_DIRECTORIES
(
${
CGoGN_ROOT_DIR
}
/windows_dependencies/include/
)
INCLUDE_DIRECTORIES
(
${
CGoGN_ROOT_DIR
}
/windows_dependencies/include/suitesparse
)
LIST
(
APPEND CGoGN_EXT_INCLUDES
${
CGoGN_ROOT_DIR
}
/windows_dependencies/include/suitesparse
)
LIST
(
APPEND CGoGN_EXT_LIBS
${
CGoGN_ROOT_DIR
}
/windows_dependencies/lib/suitesparse.lib
${
CGoGN_ROOT_DIR
}
/windows_dependencies/lib/metis.lib
${
CGoGN_ROOT_DIR
}
/windows_dependencies/lib/liblapack.lib
${
CGoGN_ROOT_DIR
}
/windows_dependencies/lib/libblas.lib
)
ELSE
(
WIN32
)
LIST
(
APPEND CGoGN_EXT_INCLUDES
${
SUITESPARSE_INCLUDE_DIRS
}
)
LIST
(
APPEND CGoGN_EXT_LIBS
${
SUITESPARSE_LIBRARIES
}
pthread
)
ENDIF
(
WIN32
)
#LIST(REMOVE_DUPLICATES CGoGN_EXT_INCLUDES)
IF
(
NOT WIN32
)
LIST
(
APPEND CGoGN_EXT_LIBS pthread
)
#for c++11 thread
ENDIF
()
include_directories
(
${
CGoGN_SRC_DIR
}
/include
...
...
cmake_modules/FindSuiteSparse.cmake
View file @
9526242e
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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