CHIP-8 emulator with threading
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
519B

  1. # CMakeLists.txt
  2. # CMakeLists file for C8E
  3. CMAKE_MINIMUM_REQUIRED(VERSION 3.9)
  4. PROJECT(C8E CXX)
  5. SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
  6. SET(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/lib)
  7. SET(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
  8. FIND_PACKAGE(SDL2 REQUIRED)
  9. FILE(GLOB SOURCES ${CMAKE_SOURCE_DIR}/src/*)
  10. ADD_EXECUTABLE(c8e ${SOURCES})
  11. TARGET_LINK_LIBRARIES(c8e SDL2::SDL2)
  12. SET_PROPERTY(
  13. DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  14. PROPERTY VS_STARTUP_PROJECT c8e
  15. )