-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (40 loc) · 1.25 KB
/
CMakeLists.txt
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.8.2)
PROJECT(scxml)
OPTION(BUILD_SCC "Enable scc" OFF)
OPTION(scxml_BUILD_EXAMPLES "Build examples" OFF)
#-----------------------------------------------------------------------------
# Output directories.
#
SET(output_dir ${scxml_BINARY_DIR}/bin)
FOREACH(type LIBRARY RUNTIME ARCHIVE)
IF(NOT DEFINED CMAKE_${type}_OUTPUT_DIRECTORY)
SET(CMAKE_${type}_OUTPUT_DIRECTORY ${output_dir} CACHE INTERNAL "Single output directory for building all libraries.")
ENDIF()
ENDFOREACH()
#-----------------------------------------------------------------------------
# Qt
#
FIND_PACKAGE(Qt4 4.6 REQUIRED)
SET(QT_USE_QTSCRIPT ON)
INCLUDE(${QT_USE_FILE})
#-----------------------------------------------------------------------------
# Subdirectories
#
INCLUDE_DIRECTORIES(
${CMAKE_CURRENT_SOURCE_DIR}
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_CURRENT_BINARY_DIR}/src
)
ADD_SUBDIRECTORY(src)
IF(BUILD_SCC)
# ADD_SUBDIRECTORY(scc)
ENDIF()
IF(scxml_BUILD_EXAMPLES)
# ADD_SUBDIRECTORY(examples)
ENDIF()
#-----------------------------------------------------------------------------
# Generate scxml file
#
CONFIGURE_FILE(Usescxml.cmake.in
${scxml_BINARY_DIR}/Usescxml.cmake COPYONLY)
INCLUDE(GeneratescxmlConfig.cmake)