Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dune-copasi
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
COPASI
dune-copasi
Commits
56e839e2
Commit
56e839e2
authored
4 years ago
by
Santiago Ospina De Los Ríos
Browse files
Options
Downloads
Patches
Plain Diff
Honor package order on main and config
parent
4805b108
No related branches found
No related tags found
1 merge request
!49
Resolve "Finish installation and usage instruction on the documentation"
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+10
-8
10 additions, 8 deletions
CMakeLists.txt
cmake/pkg/dune-copasi-config.cmake.in
+10
-9
10 additions, 9 deletions
cmake/pkg/dune-copasi-config.cmake.in
with
20 additions
and
17 deletions
CMakeLists.txt
+
10
−
8
View file @
56e839e2
...
...
@@ -31,8 +31,17 @@ option(DUNE_COPASI_COMPILE_3D
# make sure to find our own cmake modules
list
(
APPEND CMAKE_MODULE_PATH
"
${
PROJECT_SOURCE_DIR
}
/cmake/modules"
)
# find dependencies
# find
dune
dependencies
find_package
(
dune-common REQUIRED
)
# include macros for dune projects
list
(
APPEND CMAKE_MODULE_PATH
"
${
dune-common_MODULE_PATH
}
"
)
include
(
DuneMacros
)
# start a dune project with information from dune.module, and find dune dependencies
dune_project
()
# find specific dune-copasi dependencies
find_package
(
muparser REQUIRED
)
find_package
(
TIFF REQUIRED
)
find_package
(
Filesystem
)
...
...
@@ -66,13 +75,6 @@ if(USE_FALLBACK_FILESYSTEM)
endif
()
endif
()
# include macros for dune projects
list
(
APPEND CMAKE_MODULE_PATH
"
${
dune-common_MODULE_PATH
}
"
)
include
(
DuneMacros
)
# start a dune project with information from dune.module, and find dune dependencies
dune_project
()
# create main target
add_library
(
dune-copasi
)
set_target_properties
(
dune-copasi PROPERTIES LIBRARY_OUTPUT_NAME dunecopasi
)
...
...
This diff is collapsed.
Click to expand it.
cmake/pkg/dune-copasi-config.cmake.in
+
10
−
9
View file @
56e839e2
...
...
@@ -28,15 +28,6 @@ if(NOT dune-copasi_FOUND)
# setup dependencies
find_dependency(dune-common)
find_dependency(muparser)
find_dependency(TIFF)
if(@USE_FALLBACK_FILESYSTEM@)
find_dependency(ghc_filesystem REQUIRED)
else()
find_dependency(Filesystem REQUIRED)
endif()
cmake_policy(POP)
# make sure to find cmake modules for dune-common
list(APPEND CMAKE_MODULE_PATH "${dune-common_MODULE_PATH}")
...
...
@@ -64,6 +55,16 @@ if(NOT dune-copasi_FOUND)
# make sure to find cmake modules for dune-copasi
list(APPEND CMAKE_MODULE_PATH "${dune-copasi_MODULE_PATH}")
find_dependency(muparser)
find_dependency(TIFF)
if(@USE_FALLBACK_FILESYSTEM@)
find_dependency(ghc_filesystem REQUIRED)
else()
find_dependency(Filesystem REQUIRED)
endif()
cmake_policy(POP)
# import targets
get_filename_component(_dir "${CMAKE_CURRENT_LIST_FILE}" PATH)
include("${_dir}/dune-copasi-targets.cmake")
...
...
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