mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-06 09:58:41 +02:00
Statically link in C++ API rather than compiling it 3 times
This commit is contained in:
+3
-7
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user