Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
CoMISo
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
4
Issues
4
List
Boards
Labels
Service Desk
Milestones
Merge Requests
5
Merge Requests
5
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
CoMISo
CoMISo
Commits
90a6a428
Commit
90a6a428
authored
Dec 18, 2015
by
Jan Möbius
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated finder and added Base defines
parent
7bc23d9a
Pipeline
#485
passed with stage
Changes
2
Pipelines
1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
546 additions
and
530 deletions
+546
-530
CMakeLists.txt
CMakeLists.txt
+525
-524
cmake/FindCoMISo.cmake
cmake/FindCoMISo.cmake
+21
-6
No files found.
CMakeLists.txt
View file @
90a6a428
This diff is collapsed.
Click to expand it.
cmake/FindCoMISo.cmake
View file @
90a6a428
...
...
@@ -12,19 +12,34 @@ IF (COMISO_INCLUDE_DIRS)
SET
(
COMISO_FIND_QUIETLY TRUE
)
ENDIF
(
COMISO_INCLUDE_DIRS
)
# search all lib directories in packages for OpenFlipper
file
(
GLOB _libdirs
"
${
CMAKE_SOURCE_DIR
}
/libs"
"
${
CMAKE_SOURCE_DIR
}
/Package-*/libs"
"
${
CMAKE_BINARY_DIR
}
/libs"
"
${
CMAKE_BINARY_DIR
}
/Package-*/libs"
"
${
CMAKE_BINARY_DIR
}
/libs/CoMISo"
"
${
CMAKE_BINARY_DIR
}
/Package-*/libs/CoMISo"
)
# Find CoMISo config file
FIND_PATH
(
COMISO_CONFIG_INCLUDE_DIR CoMISo/Config/config.hh
PATHS
"
${
CMAKE_BINARY_DIR
}
"
"
${
CMAKE_BINARY_DIR
}
/
libs
/"
"
${
CMAKE_BINARY_DIR
}
/../"
)
PATHS
${
_libdirs
}
"
${
CMAKE_BINARY_DIR
}
/
..
/"
"
${
CMAKE_BINARY_DIR
}
/../
CoMISo/
"
)
FIND_PATH
(
COMISO_INCLUDE_DIR CoMISo/Solver/MISolver.hh
PATHS
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_SOURCE_DIR
}
/libs/"
PATHS
${
_libdirs
}
"
${
CMAKE_SOURCE_DIR
}
"
"
${
CMAKE_SOURCE_DIR
}
/../"
)
if
(
COMISO_INCLUDE_DIR AND COMISO_CONFIG_INCLUDE_DIR
)
# add COMISO_INCLUDE_DIR/CoMISo so stuff in CoMISo/Base can be included by <Base/...>
set
(
COMISO_INCLUDE_DIR
"
${
COMISO_INCLUDE_DIR
}
;
${
COMISO_INCLUDE_DIR
}
/CoMISo"
)
FILE
(
READ
${
COMISO_CONFIG_INCLUDE_DIR
}
/CoMISo/Config/config.hh CURRENT_COMISO_CONFIG
)
set
(
COMISO_OPT_DEPS
""
)
...
...
@@ -227,7 +242,7 @@ if ( COMISO_INCLUDE_DIR AND COMISO_CONFIG_INCLUDE_DIR )
endif
()
add_definitions
(
-DCOMISODLL -DUSECOMISO
)
add_definitions
(
-DCOMISODLL -DUSECOMISO
-DBASEDLL -DUSEBASE
)
include
(
FindPackageHandleStandardArgs
)
SET
(
COMISO_FOUND TRUE
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment