CMakeLists.txt 579 B

123456789101112131415161718192021222324252627
  1. cmake_minimum_required (VERSION 3.8)
  2. set( CMAKE_VERBOSE_MAKEFILE ON )
  3. set(CMAKE_DISABLE_SOURCE_CHANGES ON)
  4. set(CMAKE_DISABLE_IN_SOURCE_BUILD ON)
  5. project (multibox)
  6. #properly disable insource building, as CMAKE_DISABLE_IN_SOURCE_BUILD never works for me
  7. if ("${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_BINARY_DIR}")
  8. message(SEND_ERROR "Insource building is disabled.")
  9. endif()
  10. set(SOURCES
  11. src/common.h
  12. src/cpu_ops_jump.h
  13. src/cpu_ops_misc.h
  14. src/cpu_ops_mov.h
  15. src/cpu_ops_table.h
  16. src/cpu_ops.h
  17. src/cpu.cpp
  18. src/cpu.h
  19. src/info.h
  20. src/main.cpp
  21. )
  22. add_executable(multibox ${SOURCES})