summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAllen Winter <allen.winter@kdab.com>2015-02-16 17:00:22 -0500
committerAllen Winter <allen.winter@kdab.com>2015-02-16 17:00:22 -0500
commit0ec7860bd9f0f5e7fda73eea61d72ccd57fb4a5b (patch)
tree520cef2dc7dcba8af95394a57cc2a83e415e6ba6 /examples
parent9d94fbf438bb07662ca87203aeb4415ba83886a5 (diff)
downloadlibical-git-0ec7860bd9f0f5e7fda73eea61d72ccd57fb4a5b.tar.gz
Seems to link on Windows with MSVC now, albeit with some warnings.
Diffstat (limited to 'examples')
-rw-r--r--examples/CMakeLists.txt18
1 files changed, 13 insertions, 5 deletions
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt
index f91241fe..d5d3d0e1 100644
--- a/examples/CMakeLists.txt
+++ b/examples/CMakeLists.txt
@@ -17,11 +17,19 @@ add_executable(doesnothing ${doesnothing_SRCS})
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(NOT WIN32)
+ target_link_libraries(doesnothing
+ ${CMAKE_BINARY_DIR}/lib/libical.a
+ ${CMAKE_BINARY_DIR}/lib/libicalss.a
+ ${CMAKE_BINARY_DIR}/lib/libicalvcal.a
+ )
+ else()
+ target_link_libraries(doesnothing
+ ${CMAKE_BINARY_DIR}/bin/libical-static.lib
+ ${CMAKE_BINARY_DIR}/bin/libicalss-static.lib
+ ${CMAKE_BINARY_DIR}/bin/libicalvcal-static.lib
+ )
+ endif()
target_link_libraries(doesnothing ${CMAKE_THREAD_LIBS_INIT})
if(ICU_FOUND)
target_link_libraries(doesnothing ${ICU_LIBRARY})