Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
JPSvis
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
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JuPedSim
JPSvis
Commits
de7a9088
Commit
de7a9088
authored
6 years ago
by
Mohcine Chraibi
Browse files
Options
Downloads
Patches
Plain Diff
cmake install section
parent
7b072d95
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
CMakeLists.txt
+14
-14
14 additions, 14 deletions
CMakeLists.txt
with
14 additions
and
14 deletions
CMakeLists.txt
+
14
−
14
View file @
de7a9088
...
@@ -6,8 +6,8 @@
...
@@ -6,8 +6,8 @@
# MARK_AS_ADVANCED (BUILD_TESTING CMAKE_BUILD_TYPE=Debug)
# MARK_AS_ADVANCED (BUILD_TESTING CMAKE_BUILD_TYPE=Debug)
#windows flags: -DDESIRED_QT_VERSION=5 -DCMAKE_PREFIX_PATH=D:\Qt32bit\Qt5.4.1\5.4\msvc2013 -DCMAKE_PREFIX_PATH=VTK.0.0\VTK-7.0.0\build -G "Visual Studio 12 2013"
#windows flags: -DDESIRED_QT_VERSION=5 -DCMAKE_PREFIX_PATH=D:\Qt32bit\Qt5.4.1\5.4\msvc2013 -DCMAKE_PREFIX_PATH=VTK.0.0\VTK-7.0.0\build -G "Visual Studio 12 2013"
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
cmake_minimum_required
(
VERSION
2.8
)
cmake_minimum_required
(
VERSION
3.2
)
project
(
jpsvis
)
project
(
jpsvis
LANGUAGES CXX
)
IF
(
APPLE
)
IF
(
APPLE
)
cmake_policy
(
SET CMP0025 NEW
)
#fixes error No known features for CXX compiler (on mac)
cmake_policy
(
SET CMP0025 NEW
)
#fixes error No known features for CXX compiler (on mac)
ENDIF
(
APPLE
)
ENDIF
(
APPLE
)
...
@@ -409,14 +409,14 @@ INSTALL(TARGETS jpsvis
...
@@ -409,14 +409,14 @@ INSTALL(TARGETS jpsvis
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------
# Install needed Qt plugins by copying directories from the qt installation
# Install needed Qt plugins by copying directories from the qt installation
# One can cull what gets copied by using 'REGEX "..." EXCLUDE'
# One can cull what gets copied by using 'REGEX "..." EXCLUDE'
INSTALL
(
DIRECTORY
"
${
QT_PLUGINS_DIR
}
/imageformats"
DESTINATION
${
plugin_dest_dir
}
/plugins COMPONENT Runtime
)
#
INSTALL(DIRECTORY "${QT_PLUGINS_DIR}/imageformats" DESTINATION ${plugin_dest_dir}/plugins COMPONENT Runtime)
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------
# install a qt.conf file
# install a qt.conf file
# this inserts some cmake code into the install script to write the file
# this inserts some cmake code into the install script to write the file
INSTALL
(
CODE
"
#
INSTALL(CODE "
file(WRITE
\"\$
{CMAKE_INSTALL_PREFIX}/
${
qtconf_dest_dir
}
/qt.conf
\"
\"\"
)
#
file(WRITE \"\${CMAKE_INSTALL_PREFIX}/${qtconf_dest_dir}/qt.conf\" \"\")
"
COMPONENT Runtime
)
#
" COMPONENT Runtime)
#--------------------------------------------------------------------------------
#--------------------------------------------------------------------------------
...
@@ -437,14 +437,14 @@ message(STATUS "qt_lib_dirs ${QT_LIBRARY_DIRS}")
...
@@ -437,14 +437,14 @@ message(STATUS "qt_lib_dirs ${QT_LIBRARY_DIRS}")
# An alternative is the do a configure_file() on a script and use install(SCRIPT ...).
# An alternative is the do a configure_file() on a script and use install(SCRIPT ...).
# Note that the image plugins depend on QtSvg and QtXml, and it got those copied
# Note that the image plugins depend on QtSvg and QtXml, and it got those copied
# over.
# over.
if
(
APPLE
)
#
if(APPLE)
INSTALL
(
CODE
"
#
INSTALL(CODE "
file(GLOB_RECURSE QTPLUGINS
#
file(GLOB_RECURSE QTPLUGINS
\"\$
{CMAKE_INSTALL_PREFIX}/
${
plugin_dest_dir
}
/plugins/*
${
CMAKE_SHARED_LIBRARY_SUFFIX
}
\"
)
#
\"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
include(BundleUtilities)
#
include(BundleUtilities)
fixup_bundle(
\"
${
APPS
}
\"
\"\$
{QTPLUGINS}
\"
\"
${
DIRS
}
\"
)
#
fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
"
COMPONENT Runtime
)
#
" COMPONENT Runtime)
endif
()
#
endif()
IF
(
APPLE
)
IF
(
APPLE
)
# set how it shows up in the Info.plist file
# set how it shows up in the Info.plist file
...
...
This diff is collapsed.
Click to expand it.
Ghost User
@ghost
mentioned in issue
#64 (closed)
·
6 years ago
mentioned in issue
#64 (closed)
mentioned in issue #64
Toggle commit list
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