diff options
author | Allen Winter <allen.winter@kdab.com> | 2015-02-14 18:33:41 -0500 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2015-02-14 18:33:41 -0500 |
commit | 5e23e5e5f5369045c2893f3e57a0f60066366c5f (patch) | |
tree | 5f84b95c78cd7f297b11fe29aa6dbdefd18d7c67 /examples | |
parent | 560c49abe4cc4b0d35760ab4ef453c8bfed51aa1 (diff) | |
download | libical-git-5e23e5e5f5369045c2893f3e57a0f60066366c5f.tar.gz |
first attempt at fixing visibility for C++
as well as re-arraning the CMakeLists.txt for each of the libs.
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 ############### |