aboutsummaryrefslogtreecommitdiff
path: root/plugins/ConfigurationEditor/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/ConfigurationEditor/CMakeLists.txt')
-rw-r--r--plugins/ConfigurationEditor/CMakeLists.txt28
1 files changed, 28 insertions, 0 deletions
diff --git a/plugins/ConfigurationEditor/CMakeLists.txt b/plugins/ConfigurationEditor/CMakeLists.txt
new file mode 100644
index 0000000..3687463
--- /dev/null
+++ b/plugins/ConfigurationEditor/CMakeLists.txt
@@ -0,0 +1,28 @@
+find_package(Qt5Core REQUIRED)
+find_package(Qt5Widgets REQUIRED)
+
+set(CMAKE_AUTOMOC ON)
+set(CMAKE_AUTOUIC ON)
+
+add_library(ConfigurationEditorPlugin SHARED
+ configurationeditorplugin.cpp
+ configurationeditorplugin.h
+ forms/settingsdialog.cpp
+ forms/settingsdialog.h
+)
+
+target_include_directories(ConfigurationEditorPlugin
+ PRIVATE ..
+ PRIVATE ${CMAKE_SOURCE_DIR}/lib/configuration
+)
+
+target_link_libraries(ConfigurationEditorPlugin
+ PRIVATE Qt5::Widgets
+ PRIVATE configuration
+)
+
+if(WIN32)
+ install(TARGETS ConfigurationEditorPlugin RUNTIME DESTINATION lib/smolbote CONFIGURATIONS Release)
+else()
+ install(TARGETS ConfigurationEditorPlugin LIBRARY DESTINATION lib/smolbote CONFIGURATIONS Release)
+endif()