]> Creatis software - cpPlugins.git/blob - CMakeLists.txt
Moved to version 1.0
[cpPlugins.git] / CMakeLists.txt
1 ## =========================================================================
2 ## @author Leonardo Florez-Valencia (florez-l@javeriana.edu.co)
3 ## =========================================================================
4
5 ## == Base project configuration
6 cmake_minimum_required(VERSION 3.0)
7 set(prj_NAME cpPlugins)
8 set(prj_MAJ 1)
9 set(prj_MIN 0)
10 set(prj_REL 0)
11
12 ## == Project definiton
13 project(${prj_NAME} VERSION "${prj_MAJ}.${prj_MIN}.${prj_REL}")
14 include(cmake/cpPlgDefinitions.cmake)
15 include(cmake/cpPlgFunctions.cmake)
16
17 ## == User could want only cmake scripts
18 option(cpPlugins_BUILD "Build targets?" OFF)
19 if(cpPlugins_BUILD)
20
21   ## == Options
22   option(BUILD_PLUGINS_cpPluginsBase "Build base plugins?" OFF)
23
24   ## == Find Boost
25   find_package(Boost REQUIRED COMPONENTS filesystem program_options)
26
27   ## == Find Qt5
28   find_package(Qt5 CONFIG REQUIRED COMPONENTS Widgets)
29   set(CMAKE_INCLUDE_CURRENT_DIR ON)
30   set(CMAKE_AUTOMOC ON)
31
32   ## == Process subdirs
33   subdirs(appli lib)
34
35 endif(cpPlugins_BUILD)
36 include(cmake/cpPlgInstallCommands.cmake)
37
38 ## == Prepare CMake scripts
39 subdirs(cmake)
40
41 ## eof - $RCSfile$