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.
|
|
|
enable_language(C)
|
|
|
|
set(CMAKE_C_LINK_LIBRARIES_PROCESSING ORDER=WRONG DEDUPLICATION=ALL)
|
|
|
|
add_library(lib STATIC lib.c)
|
|
|
|
add_executable(main main.c)
|
|
target_link_libraries(main PRIVATE lib)
|