CMakeLists.txt 713 B

123456789101112131415161718192021222324252627282930313233343536373839
  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(WIN32)
  22. set_target_properties(ff7_field_dat_dumper PROPERTIES WIN32_EXECUTABLE ON)
  23. if (MSVC)
  24. set_target_properties(ff7_field_dat_dumper PROPERTIES LINK_FLAGS "/SUBSYSTEM:CONSOLE")
  25. endif()
  26. endif()
  27. set(LIBRARIES
  28. Utility
  29. )
  30. target_link_libraries(ff7_field_dat_dumper ${LIBRARIES})
  31. install(TARGETS ff7_field_dat_dumper
  32. DESTINATION tools/ff7
  33. )