fix(*/CMakeLists): build all binaries via (staged) leanstatic
This commit is contained in:
parent
074b179984
commit
ee15a70098
3 changed files with 18 additions and 20 deletions
|
|
@ -486,8 +486,8 @@ ADD_CUSTOM_TARGET(bin_lib ALL
|
|||
# Remark: this problem does not happen when we generate the DLL using msys2 on Windows.
|
||||
if (NOT("${CROSS_COMPILE}" MATCHES "ON"))
|
||||
if ("${STATIC}" MATCHES "OFF")
|
||||
add_library(leanshared SHARED shared/init.cpp ${LEAN_OBJS})
|
||||
target_link_libraries(leanshared ${EXTRA_LIBS})
|
||||
add_library(leanshared SHARED shared/init.cpp)
|
||||
target_link_libraries(leanshared leanstatic)
|
||||
install(TARGETS leanshared DESTINATION lib)
|
||||
endif()
|
||||
install(FILES libleanstatic.a DESTINATION lib)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
set(kernel_tst_objs ${LEAN_OBJS})
|
||||
add_executable(level level.cpp ${kernel_tst_objs})
|
||||
target_link_libraries(level ${EXTRA_LIBS})
|
||||
add_executable(level level.cpp)
|
||||
target_link_libraries(level leanstatic)
|
||||
add_exec_test(level "level")
|
||||
add_executable(max_sharing max_sharing.cpp ${kernel_tst_objs})
|
||||
target_link_libraries(max_sharing ${EXTRA_LIBS})
|
||||
add_executable(max_sharing max_sharing.cpp)
|
||||
target_link_libraries(max_sharing leanstatic)
|
||||
add_exec_test(max_sharing "max_sharing")
|
||||
|
|
|
|||
|
|
@ -1,19 +1,18 @@
|
|||
set(library_tst_objs ${LEAN_OBJS})
|
||||
add_executable(expr_lt expr_lt.cpp ${library_tst_objs})
|
||||
target_link_libraries(expr_lt ${EXTRA_LIBS})
|
||||
add_executable(expr_lt expr_lt.cpp)
|
||||
target_link_libraries(expr_lt leanstatic)
|
||||
add_exec_test(expr_lt "expr_lt")
|
||||
add_executable(deep_copy deep_copy.cpp ${library_tst_objs})
|
||||
target_link_libraries(deep_copy ${EXTRA_LIBS})
|
||||
add_executable(deep_copy deep_copy.cpp)
|
||||
target_link_libraries(deep_copy leanstatic)
|
||||
add_exec_test(deep_copy "deep_copy")
|
||||
add_executable(occurs occurs.cpp ${library_tst_objs})
|
||||
target_link_libraries(occurs ${EXTRA_LIBS})
|
||||
add_executable(occurs occurs.cpp)
|
||||
target_link_libraries(occurs leanstatic)
|
||||
add_exec_test(occurs "occurs")
|
||||
add_executable(head_map head_map.cpp ${library_tst_objs})
|
||||
target_link_libraries(head_map ${EXTRA_LIBS})
|
||||
add_executable(head_map head_map.cpp)
|
||||
target_link_libraries(head_map leanstatic)
|
||||
add_exec_test(head_map "head_map")
|
||||
add_executable(parray parray.cpp ${library_tst_objs})
|
||||
target_link_libraries(parray ${EXTRA_LIBS})
|
||||
add_executable(parray parray.cpp)
|
||||
target_link_libraries(parray leanstatic)
|
||||
add_exec_test(parray "parray")
|
||||
add_executable(phashtable phashtable.cpp ${library_tst_objs})
|
||||
target_link_libraries(phashtable ${EXTRA_LIBS})
|
||||
add_executable(phashtable phashtable.cpp)
|
||||
target_link_libraries(phashtable leanstatic)
|
||||
add_exec_test(phashtable "phashtable")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue