summaryrefslogtreecommitdiff
path: root/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r--src/CMakeLists.txt13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 438d2dc..34910cb 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -1,18 +1,27 @@
+#Defined executable
add_executable(
forgetIt
./main.cpp
)
+#Find all libraries
find_package(LibXML++ REQUIRED)
find_package(GTK3 REQUIRED)
+find_package(Crypto++ REQUIRED)
-include_directories(${LibXML++_INCLUDE_DIRS} ${GTK3_INCLUDE_DIRS})
-target_link_libraries(forgetIt ${LibXML++_LIBRARIES} ${GTK3_LIBRARIES})
+#Include "Includes" and "Libraries"
+include_directories(${LibXML++_INCLUDE_DIRS} ${GTK3_INCLUDE_DIRS} ${CRYPTO++_INCLUDE_DIR})
+target_link_libraries(forgetIt ${LibXML++_LIBRARIES} ${GTK3_LIBRARIES} ${CRYPTO++_LIBRARIES})
+#Export "Includes" and "Libraries" to cache
set_property(GLOBAL PROPERTY LibXML++_INCLUDE_DIRS "${LibXML++_INCLUDE_DIRS}")
set_property(GLOBAL PROPERTY LibXML++_LIBRARIES "${LibXML++_LIBRARIES}")
+set_property(GLOBAL PROPERTY CRYPTO++_INCLUDE_DIR "${CRYPTO++_INCLUDE_DIR}")
+set_property(GLOBAL PROPERTY CRYPTO++_LIBRARIES "${CRYPTO++_LIBRARIES}")
+
+#Add subdirectory
add_subdirectory(./CryptClass/)
add_subdirectory(./IOFileClass/)
add_subdirectory(./ParserClass/)