-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathCMakeLists.txt
36 lines (24 loc) · 1017 Bytes
/
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
cmake_minimum_required(VERSION 2.8.6)
project(Imago)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake/)
set(IMAGO_LIBS_LOCATION $ENV{IMAGO_LIBS_LOCATION})
if (NOT IMAGO_LIBS_LOCATION)
set(LIBS_LOCATION "http://ggasoftware.com/downloads/repo/" CACHE STRING "URL to directory with imago third party libs")
else()
set(LIBS_LOCATION ${IMAGO_LIBS_LOCATION} CACHE STRING "URL to directory with imago third party libs")
endif()
message(STATUS ${LIBS_LOCATION})
include(GetSystemVersion)
include(BuildOptions)
include(imago-version.cmake)
message(STATUS "Subsystem: ${SUBSYSTEM_NAME}")
INCLUDE(CTest)
add_subdirectory(imago)
add_subdirectory(applications/imago_console)
add_subdirectory(bindings/c)
set(CPACK_ARCHIVE_COMPONENT_INSTALL 1)
SET(CPACK_COMPONENTS_ALL shared console static)
SET(CPACK_GENERATOR "ZIP")
SET(CPACK_PACKAGE_FILE_NAME "imago-${IMAGO_VERSION}-${PACKAGE_SUFFIX}")
SET(CMAKE_INSTALL_PREFIX ${Imago_SOURCE_DIR}/dist)
INCLUDE(CPack)