CMakeLists.txt 839 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. include_directories(
  2. ${CMAKE_CURRENT_SOURCE_DIR}/include
  3. )
  4. # define header and source files
  5. set(HEADER_FILES
  6. src/MimFile.h
  7. src/DatFile.h
  8. )
  9. set(SOURCE_FILES
  10. src/MimFile.cpp
  11. src/DatFile.cpp
  12. src/Main.cpp
  13. )
  14. add_definitions(
  15. -DQGEARS_ADD_MANAGERS
  16. )
  17. add_executable(ff7_field_dat_dumper
  18. ${HEADER_FILES}
  19. ${SOURCE_FILES}
  20. )
  21. if (APPLE)
  22. target_link_libraries(ff7_field_dat_dumper "-framework CoreFoundation -framework Cocoa -framework IOKit")
  23. endif()
  24. if(WIN32)
  25. set_target_properties(ff7_field_dat_dumper PROPERTIES WIN32_EXECUTABLE ON)
  26. if (MSVC)
  27. set_target_properties(ff7_field_dat_dumper PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
  28. endif()
  29. endif()
  30. set(LIBRARIES
  31. Utility
  32. )
  33. target_link_libraries(ff7_field_dat_dumper ${LIBRARIES})
  34. install(TARGETS ff7_field_dat_dumper
  35. DESTINATION tools/ff7
  36. )