Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
Qhull
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Grant Kim
Qhull
Commits
9aa0f64b
Commit
9aa0f64b
authored
14 years ago
by
Johannes Obermayr
Browse files
Options
Downloads
Patches
Plain Diff
Add possibility of setting INSTALL_DIRs.
parent
3cbce338
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+37
-5
37 additions, 5 deletions
CMakeLists.txt
src/CMakeLists.txt
+6
-6
6 additions, 6 deletions
src/CMakeLists.txt
with
43 additions
and
11 deletions
CMakeLists.txt
+
37
−
5
View file @
9aa0f64b
project
(
qhull
)
cmake_minimum_required
(
VERSION 2.4
)
if
(
COMMAND cmake_policy
)
cmake_policy
(
SET CMP0003 NEW
)
endif
(
COMMAND cmake_policy
)
cmake_minimum_required
(
VERSION 2.6
)
set
(
QHULL_VERSION
"2010.1.next"
)
if
(
INCLUDE_INSTALL_DIR
)
else
()
set
(
INCLUDE_INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
/include
)
endif
()
if
(
LIB_INSTALL_DIR
)
else
()
set
(
LIB_INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
/lib
)
endif
()
if
(
BIN_INSTALL_DIR
)
else
()
set
(
BIN_INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
/bin
)
endif
()
if
(
DOC_INSTALL_DIR
)
else
()
set
(
DOC_INSTALL_DIR
${
CMAKE_INSTALL_PREFIX
}
/share/doc/packages/qhull
)
endif
()
message
(
STATUS
)
message
(
STATUS
"========== qhull Build Information =========="
)
message
(
STATUS
"Build Version:
${
QHULL_VERSION
}
"
)
message
(
STATUS
"Install Prefix (CMAKE_INSTALL_PREFIX):
${
CMAKE_INSTALL_PREFIX
}
"
)
message
(
STATUS
"Binary Directory (BIN_INSTALL_DIR):
${
BIN_INSTALL_DIR
}
"
)
message
(
STATUS
"Library Directory (LIB_INSTALL_DIR):
${
LIB_INSTALL_DIR
}
"
)
message
(
STATUS
"Include Directory (INCLUDE_INSTALL_DIR):
${
INCLUDE_INSTALL_DIR
}
"
)
message
(
STATUS
"Documentation Directory (DOC_INSTALL_DIR):
${
DOC_INSTALL_DIR
}
"
)
message
(
STATUS
)
message
(
STATUS
"To change any of these options, override them using -D{OPTION_NAME} on the commandline."
)
message
(
STATUS
"To build and install qhull, run
\"
make
\"
and
\"
make install
\"
"
)
message
(
STATUS
)
add_subdirectory
(
src
)
install
(
DIRECTORY html DESTINATION share/doc/qhull
)
install
(
DIRECTORY html/ DESTINATION
${
DOC_INSTALL_DIR
}
)
This diff is collapsed.
Click to expand it.
src/CMakeLists.txt
+
6
−
6
View file @
9aa0f64b
...
...
@@ -28,10 +28,10 @@ target_link_libraries(qhull m)
if
(
UNIX
)
if
(
APPLE
)
set_target_properties
(
qhull PROPERTIES
INSTALL_NAME_DIR
"
${
CMAKE
_INSTALL_
PREFIX
}
/lib
"
)
INSTALL_NAME_DIR
"
${
LIB
_INSTALL_
DIR
}
"
)
else
(
APPLE
)
set_target_properties
(
qhull PROPERTIES
INSTALL_RPATH
"
${
CMAKE
_INSTALL_
PREFIX
}
/lib
"
INSTALL_RPATH
"
${
LIB
_INSTALL_
DIR
}
"
INSTALL_RPATH_USE_LINK_PATH TRUE
BUILD_WITH_INSTALL_RPATH FALSE
)
endif
(
APPLE
)
...
...
@@ -67,7 +67,7 @@ add_executable(qhalf ${qhalf_SOURCES})
target_link_libraries
(
qhalf qhull
)
install
(
TARGETS qhull qhullstatic qhullcmd rbox qconvex qdelaunay qvoronoi qhalf
RUNTIME DESTINATION
bin
LIBRARY DESTINATION
lib
ARCHIVE DESTINATION
lib
)
install
(
FILES libqhull.h DESTINATION
include
)
RUNTIME DESTINATION
${
BIN_INSTALL_DIR
}
LIBRARY DESTINATION
${
LIB_INSTALL_DIR
}
ARCHIVE DESTINATION
${
LIB_INSTALL_DIR
}
)
install
(
FILES libqhull.h DESTINATION
${
INCLUDE_INSTALL_DIR
}
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment