[go: up one dir, main page]

Menu

[bd9353]: / CMakeLists.txt  Maximize  Restore  History

Download this file

46 lines (36 with data), 1.2 kB

 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
cmake_minimum_required(VERSION 2.6)
project(iwor)
# Set version information.
set(VERSION_MAJOR 0)
set(VERSION_MINOR 1)
set(VERSION_REV 1)
set(VERSION_FULL ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_REV})
# Set various cache (user adjustable) settings.
set(DOCS ON CACHE BOOL "Install documentation")
set(EXAMPLES ON CACHE BOOL "Build and install examples (recommended)")
set(TEST ON CACHE BOOL "Enable regression testing")
# Enable regression testing (if enabled).
if(TEST)
enable_testing()
endif(TEST)
# Set configuration file.
configure_file(
"${PROJECT_SOURCE_DIR}/include/config.h.in"
"${PROJECT_BINARY_DIR}/config.h"
)
# Tell the compiler where to find the header files.
include_directories(include/)
include_directories("${PROJECT_BINARY_DIR}")
# Build the server and the ncurses GUI.
add_subdirectory(src/)
# Install documentation (if enabled).
if(DOCS)
install(DIRECTORY doc/ DESTINATION share/doc/iwor/)
endif(DOCS)
# Build example robots (if enabled).
if(EXAMPLES)
install(DIRECTORY examples/ DESTINATION share/examples/iwor/)
add_subdirectory(examples/robots/)
endif(EXAMPLES)
# Build the Java GUI.
#add_subdirectory(java-gui/)