Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
IHTACMakeCommon
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
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
Service Desk
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
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IHTA
CMake
IHTACMakeCommon
Commits
2d6ff020
Commit
2d6ff020
authored
2 years ago
by
Pascal Palenda
Browse files
Options
Downloads
Patches
Plain Diff
Update README accordingly
parent
4491d9c1
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README.md
+7
-1
7 additions, 1 deletion
README.md
with
7 additions
and
1 deletion
README.md
+
7
−
1
View file @
2d6ff020
...
...
@@ -35,6 +35,8 @@ FetchContent_MakeAvailable (IHTACMakeCommon)
init_project
()
option
(
PROJECT_WITH_UNIT_TESTS
"Add unit tests for project"
OFF
)
project
(
AwesomeProjectName
LANGUAGES CXX C
VERSION 1.0.0
...
...
@@ -53,6 +55,7 @@ ihta_add_library (
OUT_TEST TEST_TARGET
# The name of the unit test target will be stored in `TEST_TARGET`. Useful for adding dependencies to the target. See below.
TEST_SOURCES test/test.cpp
# This adds a unit test with the given source files.
TEST_INTERNALS
# With this option, the internals of the library can be unit tested as well.
ADD_UNIT_TEST
${
PROJECT_WITH_UNIT_TESTS
}
# This option can enable or disable the unit tests.
)
# Add external library link to library
...
...
@@ -78,7 +81,10 @@ packageProject (
# Needed so the object library knows the location of the generated headers from packageProject.
target_include_directories
(
${
LIB_TARGET
}
PUBLIC
"$<BUILD_INTERFACE:
${
PROJECT_BINARY_DIR
}
/PackageProjectInclude>"
)
target_include_directories
(
${
TEST_TARGET
}
PUBLIC
"$<BUILD_INTERFACE:
${
PROJECT_BINARY_DIR
}
/PackageProjectInclude>"
)
if
(
PROJECT_WITH_UNIT_TESTS
)
target_include_directories
(
${
TEST_TARGET
}
PUBLIC
"$<BUILD_INTERFACE:
${
PROJECT_BINARY_DIR
}
/PackageProjectInclude>"
)
endif
()
build_doc
(
ADD_DEV_SECTION OFF
...
...
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