2021-11-16 06:18:41 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2023-11-01 02:59:12 +08:00
|
|
|
index 2475881..3828a13 100644
|
2021-11-16 06:18:41 +08:00
|
|
|
--- a/CMakeLists.txt
|
|
|
|
+++ b/CMakeLists.txt
|
2023-11-01 02:59:12 +08:00
|
|
|
@@ -54,6 +54,14 @@ set (PROJECT_SOURCE_DIR "${sigc++_SOURCE_DIR}/sigc++")
|
2021-11-16 06:18:41 +08:00
|
|
|
include_directories (${sigc++_SOURCE_DIR})
|
|
|
|
include_directories (${sigc++_BINARY_DIR})
|
|
|
|
|
|
|
|
+if (BUILD_SHARED_LIBS)
|
2022-04-23 00:25:01 +08:00
|
|
|
+ if (MSVC)
|
|
|
|
+ add_compile_options (-D_WINDLL)
|
|
|
|
+ endif()
|
2023-11-01 02:59:12 +08:00
|
|
|
+else()
|
|
|
|
+ add_compile_options (-DLIBSIGCXX_STATIC)
|
2022-04-23 00:25:01 +08:00
|
|
|
+endif()
|
|
|
|
+
|
2021-11-16 06:18:41 +08:00
|
|
|
configure_file (sigc++config.h.cmake sigc++config.h)
|
2022-04-23 00:25:01 +08:00
|
|
|
|
|
|
|
set (prefix ${CMAKE_INSTALL_PREFIX})
|