File: CMakeLists.txt

package info (click to toggle)
qtoctave 0.10.1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 8,588 kB
  • sloc: cpp: 18,120; xml: 3,918; python: 1,754; ansic: 490; sh: 251; perl: 36; makefile: 4
file content (55 lines) | stat: -rw-r--r-- 1,447 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

# The name of our project is "QTOCTAVE".  CMakeLists files in this project can
# refer to the root source directory of the project as ${QTOCTAVE_SOURCE_DIR} and
# to the root binary directory of the project as ${QTOCTAVE_BINARY_DIR}.

project (qtoctave)

#include ("options.txt")

#SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/qtoctave/cmake-modules/)

IF (NOT CMAKE_BUILD_TYPE)
   SET(CMAKE_BUILD_TYPE Release)
ENDIF (NOT CMAKE_BUILD_TYPE)

#Uncoment to Verbose mode
#set(CMAKE_VERBOSE_MAKEFILE TRUE)

ADD_DEFINITIONS(-DUSER_CONFIG)

FIND_PACKAGE(Qt4 REQUIRED)

MESSAGE (STATUS "Use file: ${QT_USE_FILE}")
MESSAGE (STATUS "Qt version : ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}")

SET(QT_USE_QTXML 1)

include(UseQt4)

if( NOT ${QT_VERSION_MAJOR} EQUAL 4 OR NOT ${QT_VERSION_MINOR} GREATER 5   )
	MESSAGE (FATAL_ERROR 
			"Qt version 4.6 or 4.7 required.\n"
			"Qt version installed is: ${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}\n"
			"Please install required version.\n"
		)
endif( NOT ${QT_VERSION_MAJOR} EQUAL 4 OR NOT ${QT_VERSION_MINOR} GREATER 5   )

add_subdirectory (qtoctave_pkg/src)
add_subdirectory (xmlwidget/qt4)
add_subdirectory (widgetserver)
add_subdirectory (easy_plot)
add_subdirectory (simple_rcs)
add_subdirectory (qtjs)
add_subdirectory (qtoctave-info-reader)
add_subdirectory (qtoctave)


# install	(
# 	TARGETS src/config_files/qtoctave
# 	RUNTIME DESTINATION bin
# 	)