]> vaikene.ee Git - evaf/blobdiff - CMakeLists.txt
Added more files to the project.
[evaf] / CMakeLists.txt
diff --git a/CMakeLists.txt b/CMakeLists.txt
new file mode 100644 (file)
index 0000000..f7baf28
--- /dev/null
@@ -0,0 +1,48 @@
+project(eVaf)
+
+cmake_minimum_required(VERSION 2.6.0)
+
+if(COMMAND cmake_policy)
+    cmake_policy(SET CMP0003 NEW)
+endif(COMMAND cmake_policy)
+
+# Include our own cmake modules
+set(CMAKE_MODULE_PATH ${eVaf_SOURCE_DIR}/mk/cmake)
+
+# Find Qt4
+find_package(Qt4 REQUIRED)
+
+# Default to the Debug build type if none is specified
+IF(NOT CMAKE_BUILD_TYPE)
+    SET(CMAKE_BUILD_TYPE Debug)
+ENDIF(NOT CMAKE_BUILD_TYPE)
+
+# Add QT_NO_DEBUG for Release builds
+IF(CMAKE_BUILD_TYPE STREQUAL Release)
+    message(STATUS "Release build")
+    ADD_DEFINITIONS(-DQT_NO_DEBUG)
+ELSE(CMAKE_BUILD_TYPE STREQUAL Release)
+    message(STATUS "Debug build")
+ENDIF(CMAKE_BUILD_TYPE STREQUAL Release)
+
+# Where common eVaf header files are located
+set(eVaf_INCLUDE ${CMAKE_SOURCE_DIR}/src/libs ${CMAKE_SOURCE_DIR}/src/plugins)
+
+# Include platform-specific rules
+if(WIN32)
+    include(CMakeWin.txt)
+else(WIN32)
+    if(UNIX)
+        include(CMakeLinux.txt)
+    endif(UNIX)
+endif(WIN32)
+
+# Output all the executables and libraries to the bin directory
+set(EXECUTABLE_OUTPUT_PATH ${eVaf_BINARY_DIR}/bin)
+set(LIBRARY_OUTPUT_PATH ${eVaf_BINARY_DIR}/bin)
+
+# Uncomment if you want to see the commands that make runs
+#set(CMAKE_VERBOSE_MAKEFILE ON)
+
+# Include subdirectories
+add_subdirectory(src)