You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OPTION(SUFFIX_SO_VERSION "Suffix library name with its version"ON)
13
13
14
14
# Project configuration
15
15
SET(PROJECT_USE_CMAKE_EXPORT TRUE)
@@ -33,44 +33,52 @@ COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
33
33
PROJECT(${PROJECT_NAME}${PROJECT_ARGS})
34
34
CHECK_MINIMAL_CXX_STANDARD(11 ENFORCE)
35
35
36
+
# Project options
37
+
OPTION(SUFFIX_SO_VERSION "Suffix library name with its version"ON)
38
+
OPTION(BUILD_WITH_CPPAD_CODEGEN_BINDINGS "Build the python bindings for code generation (via CppADCodeGen)"OFF)
39
+
36
40
FINDPYTHON()
37
41
38
42
SET_BOOST_DEFAULT_OPTIONS()
39
43
ADD_PROJECT_DEPENDENCY(Boost REQUIRED)
40
44
SEARCH_FOR_BOOST_PYTHON(REQUIRED)
41
45
EXPORT_BOOST_DEFAULT_OPTIONS()
42
46
47
+
IF(BUILD_WITH_CPPAD_CODEGEN_BINDINGS)
48
+
ADD_PROJECT_DEPENDENCY(cppadcg 2.4.1 REQUIRED PKG_CONFIG_REQUIRES "cppadcg >= 2.4.1") # CppADCodeGen 2.4.1 is the first version to check the minimal version of CppAD
OPTION(BUILD_CODEGEN_BINDINGS "Build the python bindings for code generation (via CppADCodeGen)"OFF)
48
-
49
-
IF(BUILD_CODEGEN_BINDINGS)
50
-
ADD_PROJECT_DEPENDENCY(cppadcg 2.4.1 REQUIRED PKG_CONFIG_REQUIRES "cppadcg >= 2.4.1") # CppADCodeGen 2.4.1 is the first version to check the minimal version of CppAD
0 commit comments