- added dependency to libarchive projects

Tue, 03 Mar 2015 16:50:39 +0200

author
Teemu Piippo <crimsondusk64@gmail.com>
date
Tue, 03 Mar 2015 16:50:39 +0200
branch
projects
changeset 930
ab77deb851fa
parent 929
66e8453e1768
child 935
8d98ee0dc917

- added dependency to libarchive

CMakeLists.txt file | annotate | diff | comparison | revisions
--- a/CMakeLists.txt	Sat Feb 21 20:23:34 2015 +0200
+++ b/CMakeLists.txt	Tue Mar 03 16:50:39 2015 +0200
@@ -22,8 +22,13 @@
 	find_package (Qt4 REQUIRED)
 endif()
 
+find_package (Libarchive)
 find_package (OpenGL REQUIRED)
 
+if (NOT LibArchive_FOUND)
+	message (SEND_ERROR "Could not find Libarchive")
+endif()
+
 get_target_property (CODEGEN_EXE codegen LOCATION)
 include_directories (${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})
 
@@ -194,4 +199,4 @@
 	COMMAND python
 		"${CMAKE_SOURCE_DIR}/updaterevision.py"
 		"${CMAKE_CURRENT_BINARY_DIR}/hginfo.h")
-add_dependencies (${PROJECT_NAME} make_hginfo_h)
\ No newline at end of file
+add_dependencies (${PROJECT_NAME} make_hginfo_h)

mercurial