commit | 5d7eed87b47871bc882af765188fa4fbca976855 | [log] [tgz] |
---|---|---|
author | Björn Piltz <bjornpiltz@gmail.com> | Wed Apr 23 22:13:37 2014 +0200 |
committer | Keir Mierle <mierle@gmail.com> | Mon Apr 28 19:56:24 2014 +0000 |
tree | bc5a5d3c604db0416d85ec0555e206a3260a8d53 | |
parent | c830820a5c2be0d0cecb0822f2cff8b4ffe88f36 [diff] [blame] |
Suppport for MSVC DLLs. Change-Id: Ibbcc4ba4e59f5bbf1cb91fe81c7d3b9042d03493
diff --git a/examples/CMakeLists.txt b/examples/CMakeLists.txt index 60e464d..eda929b 100644 --- a/examples/CMakeLists.txt +++ b/examples/CMakeLists.txt
@@ -28,6 +28,10 @@ # # Author: keir@google.com (Keir Mierle) +IF (BUILD_SHARED_LIBS) + ADD_DEFINITIONS(-DCERES_USING_SHARED_LIBRARY) +ENDIF() + ADD_EXECUTABLE(helloworld helloworld.cc) TARGET_LINK_LIBRARIES(helloworld ceres)