mirror of
https://github.com/yoboujon/yoyo_card.git
synced 2025-06-08 17:40:50 +02:00
37 lines
No EOL
929 B
CMake
37 lines
No EOL
929 B
CMake
# Project
|
|
project(
|
|
yoyo_card
|
|
VERSION 1.0.0
|
|
DESCRIPTION "Gabo card game recreation."
|
|
HOMEPAGE_URL "https://www.etheryo.fr"
|
|
LANGUAGES CXX C
|
|
)
|
|
set(TARGET game)
|
|
|
|
# Source files
|
|
set(SOURCES "${PROJECT_SOURCE_DIR}/src")
|
|
add_executable(${TARGET}
|
|
${SOURCES}/main.cpp
|
|
)
|
|
|
|
# Include folders
|
|
target_include_directories(${TARGET} PRIVATE "${PROJECT_SOURCE_DIR}/include")
|
|
target_include_directories(${TARGET} PRIVATE "${raylib_INCLUDE_DIRS}")
|
|
|
|
# Libraries
|
|
target_link_libraries(${TARGET} raylib)
|
|
|
|
# Compilation depending on the platform
|
|
if(MSVC)
|
|
target_compile_options(${TARGET} PUBLIC /W3 /WX /DEBUG )
|
|
else()
|
|
target_compile_options(${TARGET} PUBLIC -Wall -Wextra -Wpedantic -Werror)
|
|
endif()
|
|
|
|
# Output folder
|
|
set_target_properties(${TARGET}
|
|
PROPERTIES
|
|
ARCHIVE_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/game"
|
|
LIBRARY_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/game"
|
|
RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/game"
|
|
) |