cmake_minimum_required(VERSION 3.16) project(bettola VERSION 0.1) # Let's use C++17? set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON) # include directories.. include_directories(libbettola/include) # Deps. find_package(SDL3 REQUIRED) find_package(GLEW REQUIRED) find_package(OpenGL REQUIRED) # Build our shared lib. add_subdirectory(libbettola) # Will need to clean build each time you add a new file though -.- file(GLOB_RECURSE SOURCES "src/*.cpp") add_executable(bettola ${SOURCES}) target_link_libraries(bettola PRIVATE bettola_lib SDL3::SDL3 GLEW::glew OpenGL::GL) # Server executable. file(GLOB_RECURSE SERVER_SOURCES "srv/*.cpp") add_executable(bettola_server ${SERVER_SOURCES}) target_link_libraries(bettola_server PRIVATE bettola_lib)