summaryrefslogtreecommitdiff
path: root/quackleio/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'quackleio/CMakeLists.txt')
-rw-r--r--quackleio/CMakeLists.txt47
1 files changed, 47 insertions, 0 deletions
diff --git a/quackleio/CMakeLists.txt b/quackleio/CMakeLists.txt
new file mode 100644
index 0000000..e7d83b5
--- /dev/null
+++ b/quackleio/CMakeLists.txt
@@ -0,0 +1,47 @@
+cmake_minimum_required (VERSION 3.10)
+
+project (quackleio)
+
+message("-- Configuring libquackleio")
+
+include("${CMAKE_CURRENT_SOURCE_DIR}/../Settings.cmake")
+
+find_package(Qt5 REQUIRED COMPONENTS Core)
+
+set(QUACKLEIO_SOURCES
+ dawgfactory.cpp
+ dict.cpp
+ dictfactory.cpp
+ dictimplementation.cpp
+ flexiblealphabet.cpp
+ froggetopt.cpp
+ gaddagfactory.cpp
+ gcgio.cpp
+ queenie.cpp
+ streamingreporter.cpp
+ util.cpp
+)
+
+set(QUACKLEIO_HEADERS
+ dawgfactory.h
+ dict.h
+ dictfactory.h
+ dictimplementation.h
+ flexiblealphabet.h
+ froggetopt.h
+ gaddagfactory.h
+ gcgio.h
+ logania.h
+ queenie.h
+ streamingreporter.h
+ util.h
+)
+
+add_library(quackleio
+ ${QUACKLEIO_SOURCES} ${QUACKLEIO_HEADERS}
+)
+target_include_directories(quackleio PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/..")
+target_link_libraries(quackleio Qt5::Core)
+
+set_target_properties(quackleio PROPERTIES COMPILE_FLAGS -fsanitize=address)
+set_target_properties(quackleio PROPERTIES LINK_FLAGS -fsanitize=address)