-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
36 lines (29 loc) · 868 Bytes
/
CMakeLists.txt
File metadata and controls
36 lines (29 loc) · 868 Bytes
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
project(ETH3DTwoViewEvaluation)
cmake_minimum_required(VERSION 2.8)
set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
# External dependency: boost filesystem
find_package(Boost COMPONENTS filesystem system REQUIRED)
include_directories(${Boost_INCLUDE_DIRS})
link_directories(${Boost_LIBRARY_DIRS})
# External dependency: libPNG.
find_package(PNG REQUIRED)
include_directories(${PNG_INCLUDE_DIR})
# Settings.
if(NOT CMAKE_BUILD_TYPE)
message(STATUS "Build type not specified, using RelWithDebInfo")
set(CMAKE_BUILD_TYPE RelWithDebInfo)
endif()
if(NOT "${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
add_definitions("-O2 -msse2 -msse3 -std=c++11")
endif()
include_directories(
./src
)
# Evaluation executable.
add_executable(ETH3DTwoViewEvaluation
src/main.cc
)
target_link_libraries(ETH3DTwoViewEvaluation
${PNG_LIBRARY}
${Boost_LIBRARIES}
)