Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OpenRoadEd
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
mobile_robotics
ADC
libraries
OpenRoadEd
Commits
8b958d6e
Commit
8b958d6e
authored
1 year ago
by
Sergi Hernandez
Browse files
Options
Downloads
Patches
Plain Diff
Changes to compile in Ubuntu 20.04: osgQT has to be installed from source.
parent
2de8aa16
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
OpenRoadEd/CMakeLists.txt
+9
-4
9 additions, 4 deletions
OpenRoadEd/CMakeLists.txt
with
9 additions
and
4 deletions
OpenRoadEd/CMakeLists.txt
+
9
−
4
View file @
8b958d6e
...
...
@@ -5,8 +5,11 @@ if(COMMAND cmake_policy)
cmake_policy
(
SET CMP0003 NEW
)
# explicitly request new style for passing relative and absolute paths to linker
endif
(
COMMAND cmake_policy
)
set
(
CMAKE_PREFIX_PATH
"/usr/local/lib64/pkgconfig"
)
find_package
(
PkgConfig
)
pkg_check_modules
(
OSG REQUIRED openscenegraph-osg openscenegraph-osgViewer openscenegraph-osgQt
)
pkg_check_modules
(
OSG REQUIRED openscenegraph-osg openscenegraph-osgViewer
)
pkg_search_module
(
OSGQT REQUIRED openscenegraph-osgQt
)
find_package
(
Eigen3 REQUIRED
)
...
...
@@ -139,16 +142,18 @@ set(TARGET_CPP "${CMAKE_SOURCE_DIR}/OpenDrive/OpenDriveXmlWriter.cpp"
"
${
CMAKE_SOURCE_DIR
}
/Cephes/polevl.c"
)
#message("File glob is ${TARGET_H} ${TARGET_CPP}")
#
message("OSG libraries are ${OSG_LIBRARIES}")
message
(
"OSG libraries are
${
OSG_LIBRARIES
}
"
)
INCLUDE_DIRECTORIES
(
Qt
)
INCLUDE_DIRECTORIES
(
Qt/Tree
)
INCLUDE_DIRECTORIES
(
Osg
)
INCLUDE_DIRECTORIES
(
Cephes
)
INCLUDE_DIRECTORIES
(
OpenDrive
)
INCLUDE_DIRECTORIES
(
TinyXML
)
INCLUDE_DIRECTORIES
(
${
EIGEN3_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
EIGEN3_INCLUDE_DIR
}
)
INCLUDE_DIRECTORIES
(
${
OSG_INCLUDE_DIRS
}
)
INCLUDE_DIRECTORIES
(
${
OSGQT_INCLUDE_DIRS
}
)
add_executable
(
openroaded main.cpp create_junction_road.cpp
${
CMAKE_SOURCE_DIR
}
/Qt/convert_resource.cpp
${
TARGET_H
}
${
TARGET_CPP
}
../Resources/resources.qrc
)
set_property
(
TARGET openroaded PROPERTY CXX_STANDARD 14
)
target_link_libraries
(
openroaded
${
OSG_LIBRARIES
}
Qt4::QtGui Qt4::QtXml Qt4::QtCore Qt4::QtOpenGL
)
target_link_libraries
(
openroaded
${
OSG_LIBRARIES
}
${
OSGQT_LIBRARIES
}
Qt4::QtGui Qt4::QtXml Qt4::QtCore Qt4::QtOpenGL
)
install
(
TARGETS openroaded RUNTIME DESTINATION bin
)
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