Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hqr
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
solverstack
hqr
Commits
b84a6342
Commit
b84a6342
authored
7 years ago
by
Mathieu Faverge
Browse files
Options
Downloads
Patches
Plain Diff
Start working on the cmakelist for inclusion within chameleon
parent
216249e2
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+22
-12
22 additions, 12 deletions
CMakeLists.txt
cmake_modules/GenHQRPkgConfig.cmake
+9
-9
9 additions, 9 deletions
cmake_modules/GenHQRPkgConfig.cmake
with
31 additions
and
21 deletions
CMakeLists.txt
+
22
−
12
View file @
b84a6342
...
...
@@ -9,23 +9,33 @@
#
###
cmake_minimum_required
(
VERSION 3.0
)
project
(
LIBHQR C
)
project
(
HQR C
)
# Check if compiled independtly or within another project
if
(
${
CMAKE_SOURCE_DIR
}
STREQUAL
${
CMAKE_CURENT_SOURCE_DIR
}
)
set
(
BUILD_SUBPROJECT OFF
)
else
()
set
(
BUILD_SUBPROJECT ON
)
endif
()
list
(
APPEND CMAKE_MODULE_PATH
"
${
CMAKE_SOURCE_DIR
}
/cmake_modules"
)
include
(
GenPkgConfig
)
include
(
Gen
HQR
PkgConfig
)
# The current version number
set
(
LIB
HQR_VERSION_MAJOR 0
)
set
(
LIB
HQR_VERSION_MINOR 1
)
set
(
LIB
HQR_VERSION_MICRO 0
)
set
(
HQR_VERSION_MAJOR 0
)
set
(
HQR_VERSION_MINOR 1
)
set
(
HQR_VERSION_MICRO 0
)
set
(
LIB
HQR_VERSION
"
${
LIB
HQR_VERSION_MAJOR
}
.
${
LIB
HQR_VERSION_MINOR
}
.
${
LIB
HQR_VERSION_MICRO
}
"
)
set
(
HQR_VERSION
"
${
HQR_VERSION_MAJOR
}
.
${
HQR_VERSION_MINOR
}
.
${
HQR_VERSION_MICRO
}
"
)
### Misc options
option
(
BUILD_SHARED_LIBS
"Build shared libraries"
OFF
)
if
(
NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are None, Debug, Release, RelWithDebInfo and MinSizeRel."
FORCE
)
endif
(
NOT CMAKE_BUILD_TYPE
)
if
(
NOT BUILD_SUBPROJECT
)
option
(
BUILD_SHARED_LIBS
"Build shared libraries"
OFF
)
if
(
NOT CMAKE_BUILD_TYPE
)
set
(
CMAKE_BUILD_TYPE RelWithDebInfo CACHE STRING
"Choose the type of build, options are None, Debug, Release, RelWithDebInfo and MinSizeRel."
FORCE
)
endif
(
NOT CMAKE_BUILD_TYPE
)
endif
()
set
(
hdrs
include/common.h
...
...
@@ -56,7 +66,7 @@ install(FILES
install
(
TARGETS hqr DESTINATION lib
)
generate_pkgconfig_file
()
generate_
hqr_
pkgconfig_file
()
#-- Add a custom target to generate tags
add_custom_target
(
tags
...
...
This diff is collapsed.
Click to expand it.
cmake_modules/GenPkgConfig.cmake
→
cmake_modules/Gen
HQR
PkgConfig.cmake
+
9
−
9
View file @
b84a6342
...
...
@@ -78,23 +78,23 @@ ENDMACRO(CLEAN_LIB_LIST)
# GENERATE_PKGCONFIG_FILE: generate files libhqr.pc
#
###
MACRO
(
GENERATE_PKGCONFIG_FILE
)
MACRO
(
GENERATE_
HQR_
PKGCONFIG_FILE
)
SET
(
LIB
HQR_PKGCONFIG_LIBS
"-lhqr"
)
SET
(
LIB
HQR_PKGCONFIG_LIBS_PRIVATE
"-lm"
)
SET
(
LIB
HQR_PKGCONFIG_REQUIRED
""
)
SET
(
LIB
HQR_PKGCONFIG_REQUIRED_PRIVATE
""
)
SET
(
HQR_PKGCONFIG_LIBS
"-lhqr"
)
SET
(
HQR_PKGCONFIG_LIBS_PRIVATE
"-lm"
)
SET
(
HQR_PKGCONFIG_REQUIRED
""
)
SET
(
HQR_PKGCONFIG_REQUIRED_PRIVATE
""
)
CLEAN_LIB_LIST
(
LIBHQR
)
SET
(
_output_libhqr_file
"
${
CMAKE_BINARY_DIR
}
/
lib
hqr.pc"
)
SET
(
_output_libhqr_file
"
${
CMAKE_BINARY_DIR
}
/hqr.pc"
)
CONFIGURE_FILE
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib/pkgconfig/
lib
hqr.pc.in"
"
${
_output_
lib
hqr_file
}
"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/lib/pkgconfig/hqr.pc.in"
"
${
_output_hqr_file
}
"
@ONLY
)
INSTALL
(
FILES
${
_output_
lib
hqr_file
}
FILES
${
_output_hqr_file
}
DESTINATION lib/pkgconfig
)
ENDMACRO
(
GENERATE_PKGCONFIG_FILE
)
...
...
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