|
@@ -88,6 +88,14 @@ add_subdirectory(zf_log)
|
|
|
# )
|
|
|
# add_executable(yourProj ${SOURCES})
|
|
|
|
|
|
+add_custom_command(
|
|
|
+ OUTPUT images.h
|
|
|
+ COMMAND ./build_images.sh
|
|
|
+ DEPENDS ansi-to-src ghost.ans ghead.ans wolf.ans panther.ans bat.ans skull.ans skull-blink.ans icu.ans
|
|
|
+ COMMENT "Generating images.h"
|
|
|
+ WORKING_DIRECTORY ${PROJECT_SOURCE_DIR}
|
|
|
+)
|
|
|
+
|
|
|
add_executable(hharry hharry.cpp lastseen.cpp terminal.cpp render.cpp utils.cpp images.h wordplay.cpp charman.cpp)
|
|
|
target_link_libraries(hharry util)
|
|
|
target_link_libraries(hharry zf_log)
|
|
@@ -102,11 +110,4 @@ add_executable(ansi-to-src ansi-to-src.cpp utils.cpp)
|
|
|
add_executable(images images.cpp utils.cpp images.h)
|
|
|
target_link_libraries(images zf_log)
|
|
|
|
|
|
-# Or possibly ./build_images.sh
|
|
|
|
|
|
-add_custom_command(
|
|
|
- OUTPUT images.h
|
|
|
- COMMAND ../build_images.sh
|
|
|
- DEPENDS ansi-to-src ghost.ans ghead.ans wolf.ans panther.ans bat.ans skull.ans skull-blink.ans icu.ans
|
|
|
- COMMENT "Generating images.h."
|
|
|
-)
|