Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 9eeb16d

Browse files
dev: add example option
1 parent ef8ebef commit 9eeb16d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎CMakeLists.txt‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,9 @@ add_library(PopMsgBox ALIAS ${PROJECT_NAME})
2626
target_link_libraries(${PROJECT_NAME} PUBLIC Qt${QT_VERSION_MAJOR}::Widgets)
2727
target_include_directories(${PROJECT_NAME} PUBLIC ${${PROJECT_NAME}_INCLUDE_DIR})
2828

29-
add_subdirectory(example)
29+
option(BUILD_EXAMPLE "Build with example" ON)
30+
31+
if(BUILD_EXAMPLE)
32+
add_subdirectory(example)
33+
message("Build with example")
34+
endif()

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /