Statically link in C++ API rather than compiling it 3 times
parent
7e7a969f28
commit
214acf4c8f
|
|
@ -59,18 +59,14 @@ add_library(icsneocpp
|
||||||
${SRC_FILES}
|
${SRC_FILES}
|
||||||
)
|
)
|
||||||
|
|
||||||
add_library(icsneoc SHARED
|
add_library(icsneoc SHARED api/icsneoc/icsneoc.cpp)
|
||||||
api/icsneoc/icsneoc.cpp
|
target_link_libraries(icsneoc icsneocpp)
|
||||||
api/icsneocpp/icsneocpp.cpp
|
|
||||||
${SRC_FILES}
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(icsneolegacy SHARED
|
add_library(icsneolegacy SHARED
|
||||||
api/icsneolegacy/icsneolegacy.cpp
|
api/icsneolegacy/icsneolegacy.cpp
|
||||||
api/icsneoc/icsneoc.cpp
|
api/icsneoc/icsneoc.cpp
|
||||||
api/icsneocpp/icsneocpp.cpp
|
|
||||||
${SRC_FILES}
|
|
||||||
)
|
)
|
||||||
|
target_link_libraries(icsneolegacy icsneocpp)
|
||||||
|
|
||||||
target_compile_features(icsneocpp PRIVATE cxx_auto_type cxx_constexpr cxx_lambdas cxx_nullptr cxx_range_for cxx_rvalue_references cxx_sizeof_member cxx_strong_enums)
|
target_compile_features(icsneocpp PRIVATE cxx_auto_type cxx_constexpr cxx_lambdas cxx_nullptr cxx_range_for cxx_rvalue_references cxx_sizeof_member cxx_strong_enums)
|
||||||
target_compile_features(icsneoc PRIVATE cxx_auto_type cxx_constexpr cxx_lambdas cxx_nullptr cxx_range_for cxx_rvalue_references cxx_sizeof_member cxx_strong_enums)
|
target_compile_features(icsneoc PRIVATE cxx_auto_type cxx_constexpr cxx_lambdas cxx_nullptr cxx_range_for cxx_rvalue_references cxx_sizeof_member cxx_strong_enums)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue