Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
367bb6b6
Commit
367bb6b6
authored
Jun 04, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Configure manual files using CMake
parent
d8842778
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
20 deletions
+27
-20
CMakeLists.txt
CMakeLists.txt
+27
-20
No files found.
CMakeLists.txt
View file @
367bb6b6
...
...
@@ -263,26 +263,6 @@ endif()
# needed by subprojects
set
(
LD_FLAGS
${
LD_FLAGS
}
${
CMAKE_LD_LIBS
}
)
################################################################################
# check for biicode build pipeline #
################################################################################
IF
(
BIICODE
)
# define the biicode target and let it do its thing
ADD_BII_TARGETS
()
# but first specify the compiled/linker options calculated above
string
(
REPLACE
" "
";"
REPLACED_CXX_FLAGS
${
CMAKE_CXX_FLAGS
}
)
target_compile_options
(
${
BII_BLOCK_TARGET
}
INTERFACE
${
REPLACED_CXX_FLAGS
}
)
IF
(
LD_FLAGS STREQUAL
""
)
string
(
REPLACE
" "
";"
REPLACED_LD_FLAGS
${
LD_FLAGS
}
)
target_link_libraries
(
${
BII_BLOCK_TARGET
}
INTERFACE
${
REPLACED_LD_FLAGS
}
)
ENDIF
()
RETURN
()
ENDIF
()
################################################################################
# configure build_config.hpp header #
################################################################################
...
...
@@ -544,6 +524,33 @@ if(DOXYGEN_FOUND)
VERBATIM
)
endif
(
DOXYGEN_FOUND
)
################################################################################
# Manual setup #
################################################################################
if
(
EXISTS
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/manual/"
)
# retrieve current branch name
execute_process
(
COMMAND git rev-parse --abbrev-ref HEAD
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE GIT_BRANCH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
# retrieve current SHA1 hash
execute_process
(
COMMAND git log --pretty=format:%h -n 1
WORKING_DIRECTORY
${
CMAKE_SOURCE_DIR
}
OUTPUT_VARIABLE GIT_HASH
OUTPUT_STRIP_TRAILING_WHITESPACE
)
if
(
${
GIT_BRANCH
}
STREQUAL
"master"
)
set
(
CAF_RELEASE
"
${
CAF_VERSION
}
"
)
else
()
set
(
CAF_RELEASE
"
${
CAF_VERSION
}
+exp.sha.
${
GIT_HASH
}
"
)
endif
()
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/manual/variables.tex.in"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/manual/variables.tex"
IMMEDIATE @ONLY
)
configure_file
(
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/manual/conf.py.in"
"
${
CMAKE_CURRENT_SOURCE_DIR
}
/manual/conf.py"
IMMEDIATE @ONLY
)
endif
()
################################################################################
# Add additional project files to GUI #
...
...
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