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
ac7b390b
Commit
ac7b390b
authored
10 years ago
by
Mohcine Chraibi
Browse files
Options
Downloads
Patches
Plain Diff
Add flag options and remove trajectory file
parent
96fa3f8b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+46
-0
46 additions, 0 deletions
CMakeLists.txt
samples/tribuneStadium/arena_trajectories.xml
+0
-6791
0 additions, 6791 deletions
samples/tribuneStadium/arena_trajectories.xml
with
46 additions
and
6791 deletions
CMakeLists.txt
+
46
−
0
View file @
ac7b390b
...
...
@@ -238,3 +238,49 @@ else() # this else is not yet tested
target_link_libraries
(
JPSvis vtkHybrid QVTK vtkViews
${
QT_LIBRARIES
}
)
endif
()
#----------------------------------------------------------------------
# enable as many warnings as possible
set
(
warning_flags
"-Wall -Wextra"
)
# issue all the warnings demanded by strict iso c and iso c++
set
(
warning_flags
"
${
warning_flags
}
-pedantic"
)
#---------------------------- compiler -------------------------------
# Initialize CXXFLAGS.
if
(
CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID STREQUAL
"Clang"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
${
warning_flags
}
"
)
set
(
CMAKE_CXX_FLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
${
warning_flags
}
-O0 -g -Wunused-variable -Wunused-parameter -Wunused-function -Wshadow -Wunused"
)
# set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} -O3 -DNDEBUG")
endif
()
#--------------------
include
(
CheckCXXCompilerFlag
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++11"
COMPILER_SUPPORTS_CXX11
)
CHECK_CXX_COMPILER_FLAG
(
"-std=c++0x"
COMPILER_SUPPORTS_CXX0X
)
if
(
COMPILER_SUPPORTS_CXX11
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++11"
)
elseif
(
COMPILER_SUPPORTS_CXX0X
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
-std=c++0x"
)
else
()
message
(
FATAL_ERROR
"The compiler
${
CMAKE_CXX_COMPILER
}
has no C++11 support. Please use a different C++ compiler."
)
endif
()
message
(
STATUS
"Checking for C++11 compiler - available"
)
#---------------------
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
message
(
STATUS
"Using Clang "
${
CMAKE_CXX_COMPILER_VERSION
}
)
endif
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"Clang"
)
if
(
CMAKE_COMPILER_IS_GNUCXX
)
message
(
STATUS
"Using g++ "
${
CMAKE_CXX_COMPILER_VERSION
}
)
endif
(
CMAKE_COMPILER_IS_GNUCXX
)
if
(
CMAKE_BUILD_TYPE MATCHES Debug
)
set
(
CMAKE_CXX_LDFLAGS_DEBUG
"
${
CMAKE_CXX_FLAGS_DEBUG
}
-fprofile-arcs -ftest-coverage"
)
message
(
STATUS
"Debug flags: "
${
CMAKE_CXX_FLAGS
}
" "
${
CMAKE_CXX_FLAGS_DEBUG
}
)
else
(
CMAKE_BUILD_TYPE MATCHES Debug
)
message
(
STATUS
"Release flags: "
${
CMAKE_CXX_FLAGS
}
" , "
${
CMAKE_CXX_FLAGS_RELEASE
}
)
endif
(
CMAKE_BUILD_TYPE MATCHES Debug
)
# PGI ++ Flags
if
(
"
${
CMAKE_CXX_COMPILER_ID
}
"
STREQUAL
"PGI"
)
set
(
CMAKE_CXX_FLAGS
"
${
CMAKE_CXX_FLAGS
}
--c++11 -Minform=inform"
)
endif
()
This diff is collapsed.
Click to expand it.
samples/tribuneStadium/arena_trajectories.xml
deleted
100644 → 0
+
0
−
6791
View file @
96fa3f8b
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