Skip to content

Commit

Permalink
Playing with a new binary
Browse files Browse the repository at this point in the history
  • Loading branch information
ejovo13 committed Dec 9, 2024
1 parent 3c651f6 commit 50b2487
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 12 deletions.
2 changes: 1 addition & 1 deletion demo/d_functional.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ int main() {

return 0;

}
}
30 changes: 19 additions & 11 deletions src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,23 @@
if (${FFMPEG_FOUND})
set(EXECUTABLES avi2mp4 hello_ejovo mandelbrot)

add_executable(avi2mp4 avi2mp4.c)
add_executable(hello_ejovo hello_ejovo.c)
target_link_directories(avi2mp4 PUBLIC ${INC})
target_link_directories(hello_ejovo PUBLIC ${INC})
target_link_libraries(hello_ejovo ejovo)
target_link_libraries(avi2mp4 ejovo)
install(
TARGETS avi2mp4 hello_ejovo
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin
)
macro(add_ejovo_executable prog_name src_file)
add_executable(${prog_name} ${src_file})
target_link_directories(${prog_name} PUBLIC ${INC})
target_link_libraries(${prog_name} ejovo)
endmacro()

foreach(PROG ${EXECUTABLES})
add_ejovo_executable(${PROG} "${PROG}.c")
endforeach()

if(${FFMPEG_FOUND})

# add_executable(avi2mp4 avi2mp4.c) add_executable(hello_ejovo hello_ejovo.c)
# target_link_directories(avi2mp4 PUBLIC ${INC})
# target_link_directories(hello_ejovo PUBLIC ${INC})
# target_link_libraries(hello_ejovo ejovo) target_link_libraries(avi2mp4
# ejovo)
install(TARGETS ${EXECUTABLES} DESTINATION ${CMAKE_INSTALL_PREFIX}/bin)

endif()

Expand Down
16 changes: 16 additions & 0 deletions src/mandelbrot.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/**
* @file mandelbrot.c
* @brief Generate the mandelbro set using a matrix, then output a png file
*/

#include "matrix_gen.h"

int main() {

printf("Hello mandelbrot!");




}

0 comments on commit 50b2487

Please sign in to comment.