Skip to content

Commit

Permalink
Issue #1982 Splitting core sources into public and internal (1)
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeandersson committed Apr 10, 2017
1 parent ffac944 commit def2698
Showing 1 changed file with 53 additions and 29 deletions.
82 changes: 53 additions & 29 deletions casadi/core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ cmake_minimum_required(VERSION 2.8.6)

add_subdirectory(runtime)

set(CASADI_SRCS
set(CASADI_PUBLIC

# For a so/dll with default hidden visibility, we need to instantiate some templates
# Since this compilation takes some time, we put it up-front,
Expand Down Expand Up @@ -83,31 +83,23 @@ set(CASADI_SRCS
mx/repmat.hpp mx/repmat.cpp # RepMat

# A dynamically created function with AD capabilities
function/function.hpp function/function.cpp # Function object class (public API)
function/function_internal.hpp function/function_internal.cpp # Function object class (internal API)
function/oracle_function.hpp function/oracle_function.cpp # Specialization of FunctionInternal to hold an oracle
function/callback.cpp function/callback.hpp # Interface for user-defined function classes (public API)
function/callback_internal.cpp function/callback_internal.hpp # Interface for user-defined function classes (internal API)
function/plugin_interface.hpp # Plugin interface for Function
function/factory.hpp # Helper class for derivative function generation
function/x_function.hpp # Base class for SXFunction and MXFunction
function/sx_function.hpp function/sx_function.cpp
function/mx_function.hpp function/mx_function.cpp
function/external.hpp function/external.cpp
function/jit.hpp function/jit.cpp
function/linsol.hpp function/linsol.cpp function/linsol_internal.hpp function/linsol_internal.cpp
function/rootfinder.hpp function/rootfinder_impl.hpp function/rootfinder.cpp
function/integrator.hpp function/integrator_impl.hpp function/integrator.cpp
function/nlpsol.hpp function/nlpsol_impl.hpp function/nlpsol.cpp
function/conic.hpp function/conic_impl.hpp function/conic.cpp
function/dple.hpp function/dple_impl.hpp function/dple.cpp
function/interpolant.hpp function/interpolant_impl.hpp function/interpolant.cpp
function/expm.hpp function/expm_impl.hpp function/expm.cpp
function/code_generator.hpp function/code_generator.cpp
function/switch.hpp function/switch.cpp
function/bspline.hpp function/bspline.cpp
function/map.hpp function/map.cpp
function/importer.hpp function/importer.cpp function/importer_internal.hpp function/importer_internal.cpp
function/function.hpp
function/callback.hpp
function/external.hpp
function/jit.hpp
function/linsol.hpp
function/rootfinder.hpp
function/integrator.hpp
function/nlpsol.hpp
function/conic.hpp
function/dple.hpp
function/interpolant.hpp
function/expm.hpp
function/code_generator.hpp
function/switch.hpp
function/bspline.hpp
function/map.hpp
function/importer.hpp

# MISC useful stuff
misc/integration_tools.hpp misc/integration_tools.cpp
Expand All @@ -117,13 +109,45 @@ set(CASADI_SRCS
misc/variable.hpp misc/variable.cpp
misc/dae_builder.hpp misc/dae_builder.cpp

# runtime
runtime/shared.cpp

# User include class with the most essential includes
core.hpp
)

set(CASADI_INTERNAL
# A dynamically created function with AD capabilities
function/function.cpp
function/function_internal.hpp function/function_internal.cpp # Function object class (internal API)
function/oracle_function.hpp function/oracle_function.cpp # Specialization of FunctionInternal to hold an oracle
function/callback.cpp # Interface for user-defined function classes (public API)
function/callback_internal.cpp function/callback_internal.hpp # Interface for user-defined function classes (internal API)
function/plugin_interface.hpp # Plugin interface for Function
function/factory.hpp # Helper class for derivative function generation
function/x_function.hpp # Base class for SXFunction and MXFunction
function/sx_function.hpp function/sx_function.cpp
function/mx_function.hpp function/mx_function.cpp
function/external.cpp
function/jit.cpp
function/linsol.cpp function/linsol_internal.hpp function/linsol_internal.cpp
function/rootfinder_impl.hpp function/rootfinder.cpp
function/integrator_impl.hpp function/integrator.cpp
function/nlpsol.hpp function/nlpsol_impl.hpp function/nlpsol.cpp
function/conic_impl.hpp function/conic.cpp
function/dple_impl.hpp function/dple.cpp
function/interpolant_impl.hpp function/interpolant.cpp
function/expm_impl.hpp function/expm.cpp
function/code_generator.cpp
function/switch.hpp function/switch.cpp
function/bspline.hpp function/bspline.cpp
function/map.hpp function/map.cpp
function/importer.cpp function/importer_internal.hpp function/importer_internal.cpp

# runtime
runtime/shared.cpp
)

set(CASADI_SRCS ${CASADI_PUBLIC} ${CASADI_INTERNAL})


set_source_files_properties( ${RUNTIME_EMBEDDED_SRC} PROPERTIES GENERATED TRUE )

casadi_library(casadi ${CASADI_SRCS} ${RUNTIME_EMBEDDED_SRC})
Expand Down

0 comments on commit def2698

Please sign in to comment.