Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
dartflo
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Dechamps Paul
dartflo
Commits
0ee1f9c2
Commit
0ee1f9c2
authored
3 years ago
by
Adrien Crovato
Browse files
Options
Downloads
Patches
Plain Diff
Update to ubuntu22 and min. cmake 3.14
parent
01f5c1d8
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+7
-16
7 additions, 16 deletions
CMakeLists.txt
dart/_src/CMakeLists.txt
+10
-27
10 additions, 27 deletions
dart/_src/CMakeLists.txt
ext/amfe
+1
-1
1 addition, 1 deletion
ext/amfe
with
18 additions
and
44 deletions
CMakeLists.txt
+
7
−
16
View file @
0ee1f9c2
...
...
@@ -15,11 +15,7 @@
# ----------------------------------------------------------------------------
PROJECT
(
DARTFlo
)
# ----------------------------------------------------------------------------
CMAKE_MINIMUM_REQUIRED
(
VERSION 3.1
)
IF
(
${
CMAKE_VERSION
}
VERSION_GREATER
"3.14.0"
)
# we might want to update the project and use the NEW behavior here
cmake_policy
(
SET CMP0078 OLD
)
cmake_policy
(
SET CMP0086 OLD
)
ENDIF
()
CMAKE_MINIMUM_REQUIRED
(
VERSION 3.14
)
# -- I/O
# Lib/Exe dir
...
...
@@ -60,17 +56,12 @@ ENDIF()
# -- DEPENDENCIES
# Python
IF
(
CMAKE_VERSION VERSION_LESS 3.12.0
)
FIND_PACKAGE
(
PythonInterp 3.6 REQUIRED
)
FIND_PACKAGE
(
PythonLibs 3.6 REQUIRED
)
ELSE
()
FIND_PACKAGE
(
Python3 COMPONENTS Interpreter Development
)
# use Python3_ROOT_DIR if wrong python found (e.g. anaconda)
SET
(
PYTHON_EXECUTABLE
${
Python3_EXECUTABLE
}
)
SET
(
PYTHON_LIBRARIES
${
Python3_LIBRARIES
}
)
SET
(
PYTHON_INCLUDE_PATH
${
Python3_INCLUDE_DIRS
}
)
SET
(
PYTHONLIBS_VERSION_STRING
${
Python3_VERSION
}
)
ENDIF
()
# use Python3_ROOT_DIR if wrong python found (e.g. anaconda)
FIND_PACKAGE
(
Python3 COMPONENTS Interpreter Development
)
SET
(
PYTHON_EXECUTABLE
${
Python3_EXECUTABLE
}
)
SET
(
PYTHON_LIBRARIES
${
Python3_LIBRARIES
}
)
SET
(
PYTHON_INCLUDE_PATH
${
Python3_INCLUDE_DIRS
}
)
SET
(
PYTHONLIBS_VERSION_STRING
${
Python3_VERSION
}
)
# SWIG
FIND_PACKAGE
(
SWIG REQUIRED
)
...
...
This diff is collapsed.
Click to expand it.
dart/_src/CMakeLists.txt
+
10
−
27
View file @
0ee1f9c2
...
...
@@ -19,34 +19,17 @@ INCLUDE(${SWIG_USE_FILE})
FILE
(
GLOB SRCS *.h *.cpp *.inl *.swg
)
FILE
(
GLOB ISRCS *.i
)
SET
(
CMAKE_SWIG_FLAGS
""
)
SET_SOURCE_FILES_PROPERTIES
(
${
ISRCS
}
PROPERTIES CPLUSPLUS ON
)
SET
(
CMAKE_SWIG_FLAGS
"-interface"
"_dartw"
)
# avoids "import _module_d" with MSVC/Debug
SWIG_ADD_LIBRARY
(
dartw LANGUAGE python SOURCES
${
ISRCS
}
${
SRCS
}
)
SET_PROPERTY
(
TARGET dartw PROPERTY SWIG_USE_TARGET_INCLUDE_DIRECTORIES ON
)
MACRO_DebugPostfix
(
dartw
)
SET
(
SWINCFLAGS
-I
${
PROJECT_SOURCE_DIR
}
/dart/src
-I
${
PROJECT_SOURCE_DIR
}
/ext/amfe/fwk/src
-I
${
PROJECT_SOURCE_DIR
}
/ext/amfe/fwk/_src
-I
${
PROJECT_SOURCE_DIR
}
/ext/amfe/tbox/src
-I
${
PROJECT_SOURCE_DIR
}
/ext/amfe/tbox/_src
)
SET_SOURCE_FILES_PROPERTIES
(
${
ISRCS
}
PROPERTIES SWIG_FLAGS
"
${
SWINCFLAGS
}
"
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.8.0"
)
SWIG_ADD_MODULE
(
dartw python
${
ISRCS
}
${
SRCS
}
)
else
()
SWIG_ADD_LIBRARY
(
dartw LANGUAGE python SOURCES
${
ISRCS
}
${
SRCS
}
)
endif
()
MACRO_DebugPostfix
(
_dartw
)
TARGET_INCLUDE_DIRECTORIES
(
_dartw PRIVATE
${
PROJECT_SOURCE_DIR
}
/dart/_src
${
PROJECT_SOURCE_DIR
}
/ext/amfe/fwk/_src
${
PROJECT_SOURCE_DIR
}
/ext/amfe/tbox/_src
${
PYTHON_INCLUDE_PATH
}
)
SWIG_LINK_LIBRARIES
(
dartw
dart tbox fwk
${
PYTHON_LIBRARIES
}
)
TARGET_INCLUDE_DIRECTORIES
(
dartw PRIVATE
${
PROJECT_SOURCE_DIR
}
/dart/_src
${
PROJECT_SOURCE_DIR
}
/ext/amfe/tbox/_src
${
PROJECT_SOURCE_DIR
}
/ext/amfe/fwk/_src
${
PYTHON_INCLUDE_PATH
}
)
TARGET_LINK_LIBRARIES
(
dartw PRIVATE dart tbox fwk
${
PYTHON_LIBRARIES
}
)
INSTALL
(
FILES
${
EXECUTABLE_OUTPUT_PATH
}
/\
${
BUILD_TYPE
}
/dartw.py DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
INSTALL
(
TARGETS
_
dartw DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
INSTALL
(
TARGETS dartw DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
This diff is collapsed.
Click to expand it.
amfe
@
36c915f4
Compare
8a20b0f1
...
36c915f4
Subproject commit
8a20b0f157021fc286fa14bb9099fba81092da5
c
Subproject commit
36c915f4ef147a9ead9a6567ef1000e8d822c2b
c
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