-
Notifications
You must be signed in to change notification settings - Fork 3
/
CMakeLists.txt
36 lines (29 loc) · 1.15 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
cmake_minimum_required (VERSION 2.6)
project (ztopo)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
find_package(Qt4 REQUIRED)
find_package(BerkeleyDB REQUIRED)
find_package(Boost 1.36 REQUIRED)
find_package(GDAL REQUIRED)
SET(CMAKE_CXX_FLAGS "-Wall")
include_directories (${Boost_INCLUDE_DIRS})
include_directories(${QT_QTOPENGL_INCLUDE_DIR})
include_directories(${QT_QTNETWORK_INCLUDE_DIR})
include_directories(${QT_QTXML_INCLUDE_DIR})
include_directories(${GDAL_INCLUDE_DIR})
include_directories(${BERKELEY_DB_INCLUDE_DIR})
set(proj_lib "-lproj")
include_directories (/opt/local/include)
#include_directories (/Users/hawkinsp/opt/gdal-1.7.2/include)
include_directories (/Users/hawkinsp/opt/qjson/include)
#link_directories (/Users/hawkinsp/opt/gdal-1.7.2/lib)
link_directories(/opt/local/lib /Users/hawkinsp/opt/qjson/lib)
link_directories(${BERKELEY_DB_LIBRARIES})
IF(APPLE)
#SET(GUI_TYPE MACOSX_BUNDLE)
# INCLUDE_DIRECTORIES ( /Developer/Headers/FlatCarbon )
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation )
MARK_AS_ADVANCED (COREFOUNDATION_LIBRARY)
SET(EXTRA_LIBS ${COREFOUNDATION_LIBRARY})
ENDIF (APPLE)
add_subdirectory (src)