Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
ApplicationCore
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
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
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
ChimeraTK Mirror
ApplicationCore
Commits
ff22ae12
Commit
ff22ae12
authored
4 years ago
by
Martin Killenberg
Browse files
Options
Downloads
Plain Diff
Merge branch 'master' of github.com:ChimeraTK/ApplicationCore
parents
d350573e
14761e3e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
example_template/CMakeLists.txt
+4
-4
4 additions, 4 deletions
example_template/CMakeLists.txt
example_template/modules/CMakeLists.txt
+1
-1
1 addition, 1 deletion
example_template/modules/CMakeLists.txt
example_template/tests/CMakeLists.txt
+5
-4
5 additions, 4 deletions
example_template/tests/CMakeLists.txt
with
10 additions
and
9 deletions
example_template/CMakeLists.txt
+
4
−
4
View file @
ff22ae12
# CMakeLists.txt template for an ApplicationCore-based server
#
#
PROJECT
(
ChimeraTK-ApplicationCore-TemplateServer
)
CMAKE_MINIMUM_REQUIRED
(
VERSION 3.5.1
)
project
(
ChimeraTK-ApplicationCore-TemplateServer
)
cmake_minimum_required
(
VERSION 3.5.1
)
# Use the project template to get the settings required for an application core project
set
(
${
PROJECT_NAME
}
_MAJOR_VERSION 01
)
...
...
@@ -51,11 +51,11 @@ set_target_properties(${PROJECT_NAME}-xmlGenerator PROPERTIES LINK_FLAGS "${Chim
target_link_libraries
(
${
PROJECT_NAME
}
-xmlGenerator
${
PROJECT_NAME
}
lib
${
ChimeraTK-ApplicationCore_LIBRARIES
}
)
# Process tests:
ENABLE_TESTING
()
enable_testing
()
add_subdirectory
(
${
CMAKE_SOURCE_DIR
}
/tests
)
# Copy the (test) config files to the build directory
FILE
(
COPY
${
CMAKE_SOURCE_DIR
}
/config/ DESTINATION
${
PROJECT_BINARY_DIR
}
)
file
(
COPY
${
CMAKE_SOURCE_DIR
}
/config/ DESTINATION
${
PROJECT_BINARY_DIR
}
)
# Installation:
...
...
This diff is collapsed.
Click to expand it.
example_template/modules/CMakeLists.txt
+
1
−
1
View file @
ff22ae12
# CMakeLists.txt for server modules
CMAKE_MINIMUM_REQUIRED
(
VERSION 3.5.1
)
cmake_minimum_required
(
VERSION 3.5.1
)
include_directories
(
include
)
aux_source_directory
(
src library_sources
)
...
...
This diff is collapsed.
Click to expand it.
example_template/tests/CMakeLists.txt
+
5
−
4
View file @
ff22ae12
# CMakeLists.txt for test modules
CMAKE_MINIMUM_REQUIRED
(
VERSION 3.5.1
)
cmake_minimum_required
(
VERSION 3.5.1
)
# Add BOOST dependencies
FIND_PACKAGE
(
Boost COMPONENTS thread system unit_test_framework REQUIRED
)
find_package
(
Boost COMPONENTS thread system unit_test_framework REQUIRED
)
# The tests also require the server headers (TODO Potentially, module includes are also needed)
include_directories
(
${
CMAKE_SOURCE_DIR
}
/server/include
)
...
...
@@ -16,13 +16,14 @@ foreach( testExecutableSrcFile ${testExecutables})
add_executable
(
${
excutableName
}
${
testExecutableSrcFile
}
)
target_sources
(
${
excutableName
}
PRIVATE
${
SERVER_SRC_DIR
}
/Server.cc
)
set_target_properties
(
${
excutableName
}
PROPERTIES
PROPERTIES
RUNTIME_OUTPUT_DIRECTORY
${
CMAKE_BINARY_DIR
}
LINK_FLAGS
"
${
CMAKE_LINK_FLAGS
}
"
)
target_link_libraries
(
${
excutableName
}
${
PROJECT_NAME
}
lib
${
ChimeraTK-ApplicationCore_LIBRARIES
}
${
Adapter_LIBRARIES
}
)
add_test
(
NAME
${
excutableName
}
COMMAND
${
CMAKE_
CURRENT_
BINARY_DIR
}
/
${
excutableName
}
COMMAND
${
CMAKE_BINARY_DIR
}
/
${
excutableName
}
WORKING_DIRECTORY
${
CMAKE_BINARY_DIR
}
)
endforeach
(
testExecutableSrcFile
)
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