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