Skip to content

Commit

Permalink
perf: simplify cmake scripts (#362)
Browse files Browse the repository at this point in the history
Signed-off-by: msclock <msclock@qq.com>
  • Loading branch information
msclock authored Sep 6, 2024
1 parent 5f383ee commit 292bab3
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 90 deletions.
11 changes: 1 addition & 10 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ set(CMAKE_CXX_EXTENSIONS
# Source includes from vcpkg
include_directories(${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)

# From # https://github.com/msclock/cmake-registry.
# From https://github.com/msclock/cmake-registry.
find_package(cmake-modules REQUIRED)
include(cmake-modules/ProjectDefault)

Expand All @@ -32,13 +32,4 @@ include(ConfigureVersion)
include(ConfigureDocs)
include(ConfigureCoverage)

if(test IN_LIST VCPKG_MANIFEST_FEATURES)
include(ConfigureTest)
endif()

add_subdirectory(src)

# Print project final information
show_project_version()
show_vcpkg_configuration()
show_installation()
33 changes: 0 additions & 33 deletions cmake/ConfigureTest.cmake

This file was deleted.

11 changes: 1 addition & 10 deletions template/CMakeLists.txt.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ set(CMAKE_CXX_EXTENSIONS
# Source includes from vcpkg
include_directories(${VCPKG_INSTALLED_DIR}/${VCPKG_TARGET_TRIPLET}/include)

# From # https://github.com/msclock/cmake-registry.
# From https://github.com/msclock/cmake-registry.
find_package(cmake-modules REQUIRED)
include(cmake-modules/ProjectDefault)

Expand All @@ -40,13 +40,4 @@ include(ConfigureCPMDependencies)
include(ConfigureConanDependencies)
[%- endif %]

if(test IN_LIST VCPKG_MANIFEST_FEATURES)
include(ConfigureTest)
endif()

add_subdirectory(src)

# Print project final information
show_project_version()
show_vcpkg_configuration()
show_installation()
33 changes: 0 additions & 33 deletions template/cmake/ConfigureTest.cmake

This file was deleted.

4 changes: 2 additions & 2 deletions template/vcpkg.json.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
[%- endif %]
{
"name": "cmake-modules",
"version": "1.5.9"
"version": "1.6.1"
},
{
"name": "robotology-cmake-ycm",
Expand All @@ -67,7 +67,7 @@
"registries": [
{
"kind": "git",
"baseline": "d6e6813c7076b97bf2c03b91e38e851159483867",
"baseline": "20d38479da92baeddc74c7de8aa9d3453ee38aa5",
"repository": "https://github.com/msclock/cmake-registry",
"packages": [
[%- if use_conan == true %]
Expand Down
4 changes: 2 additions & 2 deletions vcpkg.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
},
{
"name": "cmake-modules",
"version": "1.5.9"
"version": "1.6.1"
},
{
"name": "robotology-cmake-ycm",
Expand All @@ -44,7 +44,7 @@
"registries": [
{
"kind": "git",
"baseline": "d6e6813c7076b97bf2c03b91e38e851159483867",
"baseline": "20d38479da92baeddc74c7de8aa9d3453ee38aa5",
"repository": "https://github.com/msclock/cmake-registry",
"packages": [
"cmake-modules",
Expand Down

0 comments on commit 292bab3

Please sign in to comment.