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
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
JuPedSim
JPSvis
Commits
2ce5db9a
Commit
2ce5db9a
authored
6 years ago
by
Mohcine Chraibi
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of
https://github.com/JuPedSim/jpsvis
parents
8edab0c6
d8316697
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
+3
-17
3 additions, 17 deletions
CMakeLists.txt
with
3 additions
and
17 deletions
CMakeLists.txt
+
3
−
17
View file @
2ce5db9a
...
@@ -84,9 +84,10 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
...
@@ -84,9 +84,10 @@ INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
set
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
set
(
CMAKE_INCLUDE_CURRENT_DIR ON
)
set
(
README_FILE
"
${
CMAKE_SOURCE_DIR
}
/README.md"
)
set
(
README_FILE
"
${
CMAKE_SOURCE_DIR
}
/README.md"
)
if
(
APPLE AND CMAKE_INSTALL_PREFIX MATCHES
"/usr/local"
)
if
(
APPLE AND CMAKE_INSTALL_PREFIX MATCHES
"/usr/local"
)
set
(
CMAKE_INSTALL_PREFIX
${
EXECUTABLE_OUTPUT_PATH
}
)
#"/Applications")
set
(
CMAKE_INSTALL_PREFIX
${
EXECUTABLE_OUTPUT_PATH
}
)
#"/
n
Applications")
endif
()
endif
()
set
(
CMAKE_INSTALL_PREFIX /tmp
)
# these files compile need Cocoa (evtl. Mac specific)
# these files compile need Cocoa (evtl. Mac specific)
SET
(
MAC_FIX_SRC src/fix/osx_thread_fix.mm
)
#.mm
SET
(
MAC_FIX_SRC src/fix/osx_thread_fix.mm
)
#.mm
SET
(
MAC_FIX_HDR src/fix/osx_thread_fix.h
)
#.h
SET
(
MAC_FIX_HDR src/fix/osx_thread_fix.h
)
#.h
...
@@ -223,12 +224,6 @@ ENDIF (WIN32)
...
@@ -223,12 +224,6 @@ ENDIF (WIN32)
#--------------- here comes QT. Version problem (4 or 5?)
#--------------- here comes QT. Version problem (4 or 5?)
# cmake does not provide findqt5-modules
# cmake does not provide findqt5-modules
#message(STATUS "QT_Qmake_executable " ${QT_QMAKE_EXECUTABLE})
#message(STATUS "QT_Qmake_executable " ${QT_QMAKE_EXECUTABLE})
if
(
$QT_QMAKE_EXECUTABLE STREQUAL
""
)
FIND_PROGRAM
(
QT_QMAKE_EXECUTABLE NAMES qmake
)
if
(
NOT QT_QMAKE_EXECUTABL
)
message
(
WARNING
"Check Qt ... no"
)
endif
()
endif
()
# default qt version is 4
# default qt version is 4
if
(
"
${
DESIRED_QT_VERSION
}
"
STREQUAL
""
)
if
(
"
${
DESIRED_QT_VERSION
}
"
STREQUAL
""
)
set
(
DESIRED_QT_VERSION
"5"
)
set
(
DESIRED_QT_VERSION
"5"
)
...
@@ -401,7 +396,7 @@ add_definitions("-DUSED_COMPILER=\"${USED_COMPILER}\"")
...
@@ -401,7 +396,7 @@ add_definitions("-DUSED_COMPILER=\"${USED_COMPILER}\"")
# Install the QtTest application, on Apple, the bundle is at the root of the
# Install the QtTest application, on Apple, the bundle is at the root of the
# install tree, and on other platforms it'll go into the bin directory.
# install tree, and on other platforms it'll go into the bin directory.
INSTALL
(
TARGETS jpsvis
INSTALL
(
TARGETS jpsvis
BUNDLE DESTINATION
.
COMPONENT Runtime
BUNDLE DESTINATION
${
CMAKE_INSTALL_PREFIX
}
COMPONENT Runtime
RUNTIME DESTINATION bin COMPONENT Runtime
RUNTIME DESTINATION bin COMPONENT Runtime
)
)
...
@@ -409,7 +404,6 @@ INSTALL(TARGETS jpsvis
...
@@ -409,7 +404,6 @@ 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 a qt.conf file
# install a qt.conf file
...
@@ -437,14 +431,6 @@ message(STATUS "qt_lib_dirs ${QT_LIBRARY_DIRS}")
...
@@ -437,14 +431,6 @@ 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)
# INSTALL(CODE "
# file(GLOB_RECURSE QTPLUGINS
# \"\${CMAKE_INSTALL_PREFIX}/${plugin_dest_dir}/plugins/*${CMAKE_SHARED_LIBRARY_SUFFIX}\")
# include(BundleUtilities)
# fixup_bundle(\"${APPS}\" \"\${QTPLUGINS}\" \"${DIRS}\")
# " COMPONENT Runtime)
# 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.
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