Skip to content

Commit c09eb9f

Browse files
Update CMake to include examples as subdirectory
1 parent 366fc71 commit c09eb9f

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ target_include_directories(mcpplibs-primitives PUBLIC
6060
)
6161

6262
# Examples
63-
add_executable(basic examples/basic.cpp)
64-
target_link_libraries(basic PRIVATE mcpplibs-primitives)
63+
add_subdirectory(examples EXCLUDE_FROM_ALL)
6564

6665
# Testing
6766
option(BUILD_TESTING "Build the testing directories" ON)

0 commit comments

Comments
 (0)