mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
20 lines
497 B
CMake
20 lines
497 B
CMake
cmake_minimum_required(VERSION 3.9)
|
|
|
|
if (NOT HOST_BINARY_DIR)
|
|
project(settingsgen)
|
|
|
|
set(sourcefiles
|
|
settingsgen.cpp
|
|
../core/alloc_func.cpp
|
|
../misc/getoptdata.cpp
|
|
../error.cpp
|
|
../ini_load.cpp
|
|
../string.cpp
|
|
)
|
|
add_definitions(-DSETTINGSGEN)
|
|
add_executable(settingsgen ${sourcefiles})
|
|
|
|
export(TARGETS settingsgen FILE ${CMAKE_BINARY_DIR}/settingsgen.cmake)
|
|
add_dependencies(tools settingsgen)
|
|
endif()
|