diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/CMakeLists.txt | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 3379ffd8..dc7d9c41 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt @@ -17,7 +17,24 @@ set(doesnothing_SRCS add_executable(doesnothing ${doesnothing_SRCS}) -target_link_libraries(doesnothing ical icalss icalvcal ical icalss icalvcal) +if(NOT STATIC_ONLY) + target_link_libraries(doesnothing ical icalss icalvcal) +else() + target_link_libraries(doesnothing + ${CMAKE_BINARY_DIR}/lib/libical.a + ${CMAKE_BINARY_DIR}/lib/libicalss.a + ${CMAKE_BINARY_DIR}/lib/libicalvcal.a + ) + if(ICU_FOUND) + target_link_libraries(doesnothing ${ICU_LIBRARY}) + endif() + if(ICU_I18N_FOUND) + target_link_libraries(doesnothing ${ICU_I18N_LIBRARY}) + endif() + if(WITH_BDB) + target_link_libraries(doesnothing ${BDB_LIBRARY}) + endif() +endif() ########### install files ############### |