-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
23 lines (16 loc) · 824 Bytes
/
CMakeLists.txt
File metadata and controls
23 lines (16 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
cmake_minimum_required(VERSION 2.8 FATAL_ERROR)
project(triplclust)
set (CMAKE_CXX_FLAGS "-O2")
# with MS Visual C++ we must explicity switch on proper exception handling
if (MSVC)
set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc")
endif (MSVC)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0")
# all source files
set(SRC src/cluster.cpp src/triplet.cpp src/main.cpp src/dnn.cpp src/hclust/fastcluster.cpp src/kdtree/kdtree.cpp src/pointcloud.cpp src/output.cpp src/option.cpp src/util.cpp src/graph.cpp)
# default target (created with "make")
add_executable (triplclust ${SRC})
# webdemo target (created with "make demo")
add_executable (triplclust-demo ${SRC})
set_target_properties(triplclust-demo PROPERTIES EXCLUDE_FROM_ALL TRUE COMPILE_FLAGS "-DWEBDEMO")
add_custom_target(demo DEPENDS triplclust-demo)