Skip to content

Commit e4e82ef

Browse files
committed
Update to cpp-library 4.0.0
1 parent 04c1690 commit e4e82ef

1 file changed

Lines changed: 9 additions & 5 deletions

File tree

CMakeLists.txt

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,24 @@ cmake_minimum_required(VERSION 3.20)
33
# Project declaration - cpp_library_setup will use this name and detect version from git tags
44
project(stlab-enum-ops)
55

6-
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cpm-cache CACHE PATH "CPM cache")
6+
set(CPM_SOURCE_CACHE ${CMAKE_SOURCE_DIR}/.cache/cpm CACHE PATH "CPM cache")
77
include(cmake/CPM.cmake)
88

99
# Fetch cpp-library via CPM
1010

11-
CPMAddPackage("gh:stlab/cpp-library@3.0.0")
11+
# CPMAddPackage(
12+
# NAME cpp-library
13+
# URL "${CMAKE_SOURCE_DIR}/../cpp-library"
14+
# )
15+
CPMAddPackage("gh:stlab/cpp-library@4.0.0")
1216
include(${cpp-library_SOURCE_DIR}/cpp-library.cmake)
1317

1418
# Let cpp-library handle the project declaration and version detection
1519
cpp_library_setup(
1620
DESCRIPTION "Type-safe operators for enums"
1721
NAMESPACE stlab
18-
HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/include/stlab/enum_ops.hpp
19-
EXAMPLES enum_ops_example enum_ops_example_fail
20-
TESTS enum_ops_tests
22+
HEADERS enum_ops.hpp
23+
EXAMPLES enum_ops_example_test.cpp enum_ops_example_fail.cpp
24+
TESTS enum_ops_tests.cpp
2125
DOCS_EXCLUDE_SYMBOLS "stlab::implementation"
2226
)

0 commit comments

Comments
 (0)