-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
39 lines (31 loc) · 1.09 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
# Root Cornucopia CMakeLists.txt
CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
PROJECT( Cornucopia )
IF(NOT CMAKE_BUILD_TYPE)
SET(CMAKE_BUILD_TYPE Release CACHE STRING
"Choose the type of build, options are: None Debug Release RelWithDebInfo MinSizeRel."
FORCE)
ENDIF(NOT CMAKE_BUILD_TYPE)
IF(MSVC)
ADD_DEFINITIONS(/arch:SSE2 /fp:fast)
ELSE(MSVC)
ADD_DEFINITIONS(-ffast-math)
ENDIF(MSVC)
#Find Eigen 3
SET(CMAKE_PREFIX_PATH ${Cornucopia_SOURCE_DIR}/../ ${CMAKE_PREFIX_PATH})
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${Cornucopia_SOURCE_DIR})
FIND_PACKAGE(Eigen3 REQUIRED)
INCLUDE_DIRECTORIES(${EIGEN3_INCLUDE_DIR})
ADD_SUBDIRECTORY( Cornucopia )
ADD_SUBDIRECTORY( DemoUI )
ADD_SUBDIRECTORY( Tools )
ADD_SUBDIRECTORY( Test )
INCLUDE(InstallRequiredSystemLibraries)
SET(CPACK_PACKAGE_NAME, "Cornucopia")
SET(CPACK_PACKAGE_VENDOR "Ilya Baran")
SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/gpl.txt")
SET(CPACK_PACKAGE_VERSION_MAJOR "0")
SET(CPACK_PACKAGE_VERSION_MINOR "1")
SET(CPACK_PACKAGE_VERSION_PATCH "0")
SET(CPACK_PACKAGE_EXECUTABLES "DemoUI" "Cornucopia DemoUI")
INCLUDE( CPack )