Revision 08cef8d6
Added by David Sorber over 9 years ago
| software/photo_compress_archiver/CMakeLists.txt | ||
|---|---|---|
|
project("Photo Compress Archiver")
|
||
|
cmake_minimum_required(VERSION 2.8)
|
||
|
|
||
|
include_directories(.)
|
||
|
|
||
|
set(pca_sources
|
||
|
../PhotoCompressArchiver.cc
|
||
|
)
|
||
|
|
||
|
set(EXTERNAL_LIBS)
|
||
|
|
||
|
find_package(Threads)
|
||
|
|
||
|
find_package(Boost 1.58.0 COMPONENTS system regex program_options filesystem REQUIRED)
|
||
|
if (Boost_FOUND)
|
||
|
include_directories(${Boost_INCLUDE_DIRS})
|
||
|
set(EXTERNAL_LIBS ${EXTERNAL_LIBS} ${Boost_LIBRARIES})
|
||
|
endif()
|
||
|
|
||
|
add_definitions("-std=c++11 -g")
|
||
|
|
||
|
add_executable(pca
|
||
|
${pca_sources}
|
||
|
../main.cc)
|
||
|
target_link_libraries(pca ${CMAKE_THREAD_LIBS_INIT} ${EXTERNAL_LIBS})
|
||
Adding initial CMakeLists.txt. This version only builds PCA, it does not (yet) build packJPG as a subproject.