This repository has been archived on 2019-09-17. You can view files and clone it, but cannot push or open issues or pull requests.
Files
research-project/CMakeLists.txt

40 lines
834 B
CMake

cmake_minimum_required (VERSION 3.8.0)
project(FMRI CXX)
# Allow us to define custom modules
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/modules")
# Enable modern C++ features
set(CMAKE_CXX_STANDARD 17)
# Define executable and dependencies
file(GLOB fmri_SRC
"src/*.cpp"
"src/*.hpp"
)
add_executable(fmri ${fmri_SRC})
# Enable better warnings
target_compile_options(fmri PRIVATE "-Wall" "-Wextra" "-pedantic")
# Find dependencies
find_package(Caffe REQUIRED)
find_package(OpenGL REQUIRED)
find_package(GLUT REQUIRED)
find_package(png++ REQUIRED)
target_link_libraries(fmri PUBLIC
Caffe::Caffe
GLUT::GLUT
OpenGL::GLU
png++::png++
)
target_include_directories(fmri PUBLIC
${Caffe_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS})
# Allow the package to be installed
install(TARGETS fmri DESTINATION bin)