Solution to The Synacor Challenge
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.
 
 

37 lines
696 B

cmake_minimum_required(VERSION 3.12)
project(synacor)
set(CMAKE_CXX_STANDARD 20)
find_package(SDL2 REQUIRED)
find_package(OpenGL REQUIRED)
file(COPY challenge.bin DESTINATION ${CMAKE_BINARY_DIR})
set(SRC
src/main.cpp
src/vm.cpp
src/synacor.cpp
src/imgui.cpp
src/imgui_impl_opengl3.cpp
src/imgui_impl_sdl.cpp
src/imgui_draw.cpp
src/imgui_tables.cpp
src/imgui_widgets.cpp
)
add_executable(synacor ${SRC})
target_include_directories(synacor PRIVATE
include
${SDL2_INCLUDE_DIRS}
${SDL2main_INCLUDE_DIRS}
${OPENGL_INCLUDE_DIR}
)
target_link_libraries(synacor PRIVATE
SDL2::SDL2
SDL2::SDL2main
OpenGL::GL
${CMAKE_DL_LIBS}
)