cmake_minimum_required (VERSION 3.8) project ("shuuki") set (CMAKE_CXX_STANDARD 17) # Include sub-projects. find_package(SDL2 CONFIG REQUIRED) find_package(OpenGL REQUIRED) find_package(nng CONFIG REQUIRED) find_package(nlohmann_json CONFIG REQUIRED) file(GLOB SOURCES "src/*.cpp" "src/include/*.cpp" "libs/gl3w/GL/gl3w.c") include_directories("src/include" ${SDL2_INCLUDE_DIRS} "libs/gl3w") add_executable (shuuki ${SOURCES} ${GL3W_SOURCES}) target_link_libraries(shuuki nng::nng nlohmann_json nlohmann_json::nlohmann_json SDL2::SDL2 SDL2::SDL2main ${OPENGL_LIBRARIES} )