-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Started getting cmake scripts into a more reasonable form.
- Loading branch information
jonnew
committed
Jun 14, 2015
1 parent
287c4b3
commit 46dac73
Showing
4 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,6 +31,8 @@ | |
# All bin directories | ||
bin/ | ||
build/ | ||
release/ | ||
debug/ | ||
!sub/bin | ||
|
||
# Ignore video/image files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
cmake_minimum_required (VERSION 2.8) | ||
project (OAT) | ||
|
||
# C++11 | ||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | ||
|
||
# Boost | ||
set (BOOST_ROOT /opt/boost_1_57_0 ) | ||
find_package (Boost REQUIRED system thread program_options filesystem) | ||
link_directories (${Boost_LIBRARY_DIR}) | ||
|
||
# OpenCV | ||
find_package (OpenCV REQUIRED) | ||
|
||
# oat shared memory lib | ||
add_subdirectory("../lib/shmem" "${CMAKE_CURRENT_BINARY_DIR}/shmem_build") | ||
|
||
# oat components | ||
add_subdirectory(cleaner) | ||
add_subdirectory(decorator) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,6 @@ | ||
cmake_minimum_required (VERSION 2.8) | ||
project (Cleaner) | ||
include_directories(${OAT_SOURCE_DIR}/cleaner) | ||
link_directories(${OAT_SOURCE_DIR}/cleaner) | ||
|
||
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11") | ||
|
||
set (BOOST_ROOT /opt/boost_1_57_0 ) | ||
find_package (Boost REQUIRED system thread program_options) | ||
link_directories (${Boost_LIBRARY_DIR}) | ||
|
||
find_package (OpenCV REQUIRED) | ||
add_executable (oat-clean main.cpp) | ||
target_link_libraries (oat-clean ${OpenCV_LIBS} ${Boost_LIBRARIES}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters