forked from lybros/appa
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
35 lines (25 loc) · 997 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
cmake_minimum_required(VERSION 2.9)
set(PROJECT_NAME appa)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
project(${PROJECT_NAME})
set(OPENIMAGEIO_LIBRARY $ENV{OPENIMAGEIO_LIBRARY})
set(OPENIMAGEIO_INCLUDE_DIR $ENV{OPENIMAGEIO_INCLUDE_DIR})
set(QGLVIEWER_INCLUDE_DIRS /usr/local/include/QGLViewer)
include_directories(${QGLVIEWER_INCLUDE_DIRS})
find_package(Theia REQUIRED)
include_directories(${THEIA_INCLUDE_DIRS})
set(CMAKE_PREFIX_PATH $ENV{QT_CMAKE_DIR})
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
find_package(Qt5Widgets REQUIRED)
include_directories(Qt5Widgets_INCLUDE_DIRS)
add_definitions(${Qt5Widgets_DEFINITIONS})
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
# The order below is important:
add_subdirectory(libs/QtAwesome/QtAwesome)
add_subdirectory(src)
add_subdirectory(cli)
add_subdirectory(ui)
add_executable(${PROJECT_NAME} main.cpp)
target_link_libraries(${PROJECT_NAME} src cli ui QtAwesome)