|
|
1.1 root 1:
2: include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src/includes
3: ${CMAKE_SOURCE_DIR}/src/debug ${SDL_INCLUDE_DIR})
4:
1.1.1.3 ! root 5: set(HMSA_SOURCES hmsa.c floppy.c ../../src/file.c)
! 6:
1.1.1.2 root 7: if(ZLIB_FOUND)
8: include_directories(${ZLIB_INCLUDE_DIR})
1.1.1.3 ! root 9: set(HMSA_SOURCES ${HMSA_SOURCES} ../../src/unzip.c)
1.1.1.2 root 10: endif(ZLIB_FOUND)
11:
1.1.1.3 ! root 12: add_executable(hmsa ${HMSA_SOURCES})
1.1 root 13:
14: target_link_libraries(hmsa Floppy)
15:
16: if(MATH_FOUND)
17: target_link_libraries(hmsa ${MATH_LIBRARY})
18: endif(MATH_FOUND)
19:
20: if(ZLIB_FOUND)
21: target_link_libraries(hmsa ${ZLIB_LIBRARY})
22: endif(ZLIB_FOUND)
23:
24: install(TARGETS hmsa RUNTIME DESTINATION ${BINDIR})
1.1.1.2 root 25:
26: # if(UNIX)
27: add_custom_target(hmsa_manpage ALL DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/hmsa.1.gz)
28: add_custom_command(OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/hmsa.1.gz
29: COMMAND gzip -c -9 ${CMAKE_CURRENT_SOURCE_DIR}/hmsa.1 > ${CMAKE_CURRENT_BINARY_DIR}/hmsa.1.gz
30: DEPENDS hmsa.1)
31: INSTALL(FILES ${CMAKE_CURRENT_BINARY_DIR}/hmsa.1.gz DESTINATION ${MANDIR})
32: # endif(UNIX)
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.