Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
OBITools3
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
11
Issues
11
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
OBITools
OBITools3
Commits
ed5bb70c
Commit
ed5bb70c
authored
May 22, 2019
by
Celine Mercier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMake: setting compiler higher to avoid conflicts, and linking libopenmp
parent
22a5ae72
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
5 deletions
+14
-5
CMakeLists.txt
src/CMakeLists.txt
+14
-5
No files found.
src/CMakeLists.txt
View file @
ed5bb70c
cmake_minimum_required
(
VERSION 3.10
)
cmake_minimum_required
(
VERSION 3.9
)
SET
(
CMAKE_C_COMPILER gcc
)
set
(
CMAKE_POSITION_INDEPENDENT_CODE ON
)
SET
(
PYTHONLIB
"po"
CACHE STRING
"Location of the python site-package directory"
)
project
(
cobitools3
)
set
(
CMAKE_BUILD_TYPE Release
)
project
(
cobitools3 LANGUAGES C
)
SET
(
CMAKE_C_COMPILER gcc
)
set
(
CMAKE_BUILD_TYPE Release
)
include_directories
(
${
CMAKE_CURRENT_SOURCE_DIR
}
)
file
(
GLOB_RECURSE CSRC
"*.c"
)
add_library
(
cobitools3 SHARED obierrno.c
...
...
@@ -61,6 +64,11 @@ add_library(cobitools3 SHARED obierrno.c
libecoPCR/ecoError.c
obitypes.c
array_indexer.c
)
find_package
(
OpenMP
)
if
(
OpenMP_C_FOUND
)
target_link_libraries
(
cobitools3 PUBLIC OpenMP::OpenMP_C
)
endif
()
install
(
TARGETS cobitools3 DESTINATION
${
PYTHONLIB
}
)
\ No newline at end of file
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