You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
add_library(myobj OBJECT ${CMAKE_BINARY_DIR}/depends_obj.c)
|
|
add_library(mylib STATIC $<TARGET_OBJECTS:myobj> depends_lib.c)
|
|
add_executable(myexe depends_main.c)
|
|
target_link_libraries(myexe mylib)
|
|
|
|
enable_testing()
|
|
add_test(NAME myexe COMMAND $<TARGET_FILE:myexe>)
|