Skip to content

Commit

Permalink
Change: add_dependencies for the example
Browse files Browse the repository at this point in the history
  • Loading branch information
mjshakir committed May 28, 2024
1 parent 4808154 commit 540da16
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ set_target_properties(${PROJECT_NAME} PROPERTIES
if(PROGRESSBAR_BUILD_EXAMPLE)
add_executable(${PROJECT_NAME}_example example/main.cpp)
target_link_libraries(${PROJECT_NAME}_example PRIVATE ${PROJECT_NAME})
add_dependencies(${PROJECT_NAME}_example ${PROJECT_NAME})
endif()

# Compiler and Linker Options for different build types and platforms
Expand Down

0 comments on commit 540da16

Please sign in to comment.