-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
33 lines (29 loc) · 1.76 KB
/
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
cmake_minimum_required( VERSION 3.12.0 )
# Variables the user may re-define from the outside:
# SIRIL - if defined, turns on Siril build.
# VIRIL - if defined, turns on Viril build.
# TIRIL_BUILDDIR - controls the build output folder
# VIRIL_BOOSTROOT - the root folder of the Boost library
# VIRIL_WITHVLC - if defined, Viril will be built into VLC and installed into the output folder along with it
# SIRIL_WITHPROFILE - if defined, Siril is built with profiling information within
if( NOT DEFINED TIRIL_BUILDDIR )
set ( TIRIL_BUILDDIR ${CMAKE_CURRENT_SOURCE_DIR}/bin )
message ( STATUS "TIRIL_BUILDDIR is undefined. Setting it to ${TIRIL_BUILDDIR}. Use -DTIRIL_BUILDDIR=[path] to redefine it" )
endif()
if( DEFINED SIRIL )
message ( STATUS "SIRIL is set to ${SIRIL}. Starting Siril build..." )
add_subdirectory ( siril )
else()
message ( STATUS "SIRIL is undefined. All other options starting with SIRIL_ will be ignored" )
endif()
if( DEFINED VIRIL )
message ( STATUS "VIRIL is set to ${VIRIL}. Starting Viril build..." )
add_subdirectory ( viril )
else()
message ( STATUS "VIRIL is undefined. All other options starting with VIRIL_ will be ignored" )
endif()
# Resetting the cache so that any subsequent changes to toggle-like variables to take effect the next time
unset ( VIRIL CACHE )
unset ( SIRIL CACHE )
unset ( VIRIL_WITHVLC CACHE )
unset ( SIRIL_WITHPROFILE CACHE )