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.
10 lines
346 B
10 lines
346 B
3 years ago
|
enable_language(C)
|
||
|
|
||
|
add_custom_command(OUTPUT main.c
|
||
|
DEPFILE main.c.d
|
||
|
COMMAND "${CMAKE_COMMAND}" -DINFILE=${CMAKE_CURRENT_SOURCE_DIR}/main.c -DOUTFILE=main.c -DDEPFILE=main.c.d
|
||
|
-P "${CMAKE_CURRENT_SOURCE_DIR}/GenerateDepFile.cmake"
|
||
|
WORKING_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}")
|
||
|
|
||
|
add_executable(main ${CMAKE_CURRENT_BINARY_DIR}/main.c)
|