Fix #10490: Allow ships to exit depots if another is not moving at the exit point...
[openttd-github.git] / src / strgen / CMakeLists.txt
bloba554dc257379174358ae2641dd3a6aee52c2705f
1 cmake_minimum_required(VERSION 3.9)
3 if (NOT HOST_BINARY_DIR)
4     project(strgen)
6     set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_CURRENT_SOURCE_DIR}/../../cmake")
8     set(sourcefiles
9             strgen.cpp
10             strgen_base.cpp
11             ../core/alloc_func.cpp
12             ../misc/getoptdata.cpp
13             ../error.cpp
14             ../string.cpp
15     )
16     add_definitions(-DSTRGEN)
17     add_executable(strgen ${sourcefiles})
19     include(Endian)
20     add_endian_definition()
22     export(TARGETS strgen FILE ${CMAKE_BINARY_DIR}/strgen.cmake)
23     add_dependencies(tools strgen)
24 endif()
26 if(OPTION_TOOLS_ONLY)
27     return()
28 endif()
30 # Source Files
31 add_files(strgen_base.cpp)
33 # Header Files
34 add_files(strgen.h)