File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed
Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -29,6 +29,7 @@ set(NAME ${PROJECT_NAME}_math_opt)
2929add_library (${NAME} OBJECT)
3030target_sources (${NAME} PUBLIC
3131 $<TARGET_OBJECTS:${NAME} _core>
32+ $<TARGET_OBJECTS:${NAME} _core_c_api>
3233 $<TARGET_OBJECTS:${NAME} _cpp>
3334 $<TARGET_OBJECTS:${NAME} _io>
3435 $<TARGET_OBJECTS:${NAME} _labs>
Original file line number Diff line number Diff line change 1111# See the License for the specific language governing permissions and
1212# limitations under the License.
1313
14+ add_subdirectory (c_api)
15+
1416file (GLOB _SRCS "*.h" "*.cc" )
15- list (APPEND _SRCS "${CMAKE_CURRENT_SOURCE_DIR} /c_api/solver.cc" )
17+ # list(APPEND _SRCS "${CMAKE_CURRENT_SOURCE_DIR}/c_api/solver.cc")
1618list (FILTER _SRCS EXCLUDE REGEX "/[^/]*_test\\ .cc$" )
1719
1820set (NAME ${PROJECT_NAME} _math_opt_core)
Original file line number Diff line number Diff line change 1313
1414set (NAME ${PROJECT_NAME} _math_opt_core_c_api)
1515add_library (${NAME} OBJECT)
16-
1716target_sources (${NAME} PRIVATE solver.h solver.cc)
1817set_target_properties (${NAME} PROPERTIES POSITION_INDEPENDENT_CODE ON )
1918target_include_directories (${NAME} PUBLIC
You can’t perform that action at this time.
0 commit comments