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.
30 lines
797 B
30 lines
797 B
cmake_minimum_required(VERSION 3.30)
|
|
|
|
project(
|
|
mcpaint
|
|
VERSION 0.0.1
|
|
LANGUAGES CXX
|
|
)
|
|
|
|
SET (CMAKE_CXX_STANDARD 23)
|
|
SET (CMAKE_BUILD_TYPE release)
|
|
SET (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -Wall")
|
|
|
|
set(EXE_NAME "mcpaint_${CMAKE_PROJECT_VERSION}")
|
|
|
|
file(GLOB_RECURSE sources src/*.hpp src/*.cpp)
|
|
|
|
message("sources: ${sources}")
|
|
|
|
file(COPY assets DESTINATION ${CMAKE_BINARY_DIR})
|
|
|
|
add_executable(mcpaint main.cpp ${sources})
|
|
include_directories("lib/raygui/src")
|
|
|
|
add_subdirectory(lib/raylib)
|
|
|
|
target_link_libraries(mcpaint raylib)
|
|
|
|
set_target_properties(mcpaint PROPERTIES OUTPUT_NAME ${EXE_NAME})
|
|
target_compile_options(mcpaint PUBLIC -Wall -Wextra -pedantic -Wno-missing-field-initializers -Wno-unused-parameter -Wno-c++11-narrowing)
|
|
target_include_directories(mcpaint PRIVATE src lib/raylib)
|
|
|