Threaded Chip-8 Emulator
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.

CMakeLists.txt 935B

1234567891011121314151617181920212223242526272829303132333435
  1. # CMakeLists.txt
  2. # CMakeLists file for C8E
  3. cmake_minimum_required(VERSION 3.9) # CMake Minimum Required Version
  4. project(C8E) # Project Name
  5. set(CMAKE_CXX_STANDARD 17) # C++ Standard
  6. # Output Directories
  7. set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
  8. set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
  9. set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR}/bin)
  10. link_directories( # Library Directories
  11. C:/Programs/SDL2/lib/x64/
  12. )
  13. file(GLOB SOURCES # Add Source Files
  14. ${CMAKE_SOURCE_DIR}/src/*
  15. )
  16. add_executable(c8e ${SOURCES}) # Build Target
  17. target_include_directories(c8e PUBLIC # Target Include Directories
  18. ${CMAKE_SOURCE_DIR}/include/*
  19. C:/Programs/SDL2/include/
  20. )
  21. target_link_libraries(c8e # Target Libraries
  22. SDL2.lib
  23. SDL2main.lib
  24. )
  25. set_property( # Visual Studio Startup Project
  26. DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
  27. PROPERTY VS_STARTUP_PROJECT c8e
  28. )