forked from sofa-framework/sofa
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.cmake.example
More file actions
31 lines (25 loc) · 858 Bytes
/
custom.cmake.example
File metadata and controls
31 lines (25 loc) · 858 Bytes
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
######################
# Wrapper macro to set boolean value to a variable
macro(setSofaOption name value)
set(${name} "${value}" CACHE BOOL "" FORCE)
message("${name} ${value}")
endmacro()
macro(setSofaPath name value)
set(${name} "${value}" CACHE PATH "" FORCE)
message("${name} ${value}")
endmacro()
macro(setSofaString name value)
set(${name} "${value}" CACHE STRING "" FORCE)
message("${name} ${value}")
endmacro()
macro(setSofaFilePath name value)
set(${name} "${value}" CACHE FILEPATH "" FORCE)
message("${name} ${value}")
endmacro()
######################
# Set custom options for builds (i.e for example, share between debug/release builds)
# After checking/unchecking options, save this file as "custom.cmake"
# OFF
# setSofaOption(APPLICATION_MODELER OFF)
# ON
# setSofaOption(SOFA_GUI_QT_ENABLE_QGLVIEWER ON)