10 lines
194 B
CMake
10 lines
194 B
CMake
|
|
enable_language(C)
|
|
|
|
set(CMAKE_C_LINK_LIBRARIES_PROCESSING ORDER=REVERSE DEDUPLICATION=WRONG)
|
|
|
|
add_library(lib STATIC lib.c)
|
|
|
|
add_executable(main main.c)
|
|
target_link_libraries(main PRIVATE lib)
|