Statically link in C++ API rather than compiling it 3 times

pull/4/head
Paul Hollinsky 2018-10-04 12:47:54 -04:00
parent 7e7a969f28
commit 214acf4c8f
1 changed files with 3 additions and 7 deletions

View File

@ -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)