CMakeLists.txt

branch
projects
changeset 936
aee883858c90
parent 935
8d98ee0dc917
--- a/CMakeLists.txt	Tue Mar 03 22:29:27 2015 +0200
+++ b/CMakeLists.txt	Wed Mar 04 15:37:21 2015 +0200
@@ -50,6 +50,7 @@
 	src/ldDocument.cpp
 	src/ldObject.cpp
 	src/ldObjectMath.cpp
+	src/ldproject.cpp
 	src/main.cpp
 	src/mainWindow.cpp
 	src/messageLog.cpp
@@ -149,6 +150,7 @@
 	set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -DQ_COMPILER_INITIALIZER_LISTS")
 endif()
 
+include_directories (${LibArchive_INCLUDE_DIRS})
 include_directories ("${PROJECT_BINARY_DIR}")
 include_directories ("${PROJECT_BINARY_DIR}/src")
 include_directories ("${PROJECT_BINARY_DIR}/src/misc")
@@ -174,7 +176,13 @@
 endif()
 
 if (USE_QT5)
-	target_link_libraries (${PROJECT_NAME} Qt5::Widgets Qt5::Network Qt5::OpenGL ${OPENGL_LIBRARIES})
+	target_link_libraries (${PROJECT_NAME}
+		Qt5::Widgets
+		Qt5::Network
+		Qt5::OpenGL
+		${OPENGL_LIBRARIES}
+		${LibArchive_LIBRARIES}
+	)
 else()
 	target_link_libraries (${PROJECT_NAME}
 		${QT_QTCORE_LIBRARY}
@@ -182,6 +190,7 @@
 		${QT_QTNETWORK_LIBRARY}
 		${QT_QTOPENGL_LIBRARY}
 		${OPENGL_LIBRARIES}
+		${LibArchive_LIBRARIES}
 	)
 endif()
 

mercurial