mirror of
https://github.com/ScrelliCopter/tmx2gba.git
synced 2025-02-21 03:29:25 +11:00
30 lines
689 B
CMake
30 lines
689 B
CMake
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
|
|
project(tmx2gba)
|
|
|
|
# C++11 & C99
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
set(CMAKE_C_STANDARD 99)
|
|
|
|
# Enable strong warnings
|
|
if (MSVC)
|
|
string(REPLACE "/W3" "/W4" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
string(REPLACE "/W3" "/W4" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
|
else()
|
|
add_compile_options(-Wall)
|
|
endif()
|
|
|
|
# Libraries
|
|
add_subdirectory(ext/base64)
|
|
add_subdirectory(ext/miniz)
|
|
add_subdirectory(ext/rapidxml)
|
|
add_subdirectory(ext/ultragetopt)
|
|
|
|
# Main tmx2gba sources
|
|
add_subdirectory(src)
|
|
|
|
if (MSVC)
|
|
# Default to tmx2gba as startup project when generating Solutions
|
|
set_property(DIRECTORY ${CMAKE_SOURCE_DIR}
|
|
PROPERTY VS_STARTUP_PROJECT tmx2gba)
|
|
endif()
|