2021-08-29 09:42:50 +00:00
|
|
|
cmake_minimum_required(VERSION 3.18)
|
2021-08-22 17:03:03 +00:00
|
|
|
project(PokemonScriptTester)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Werror")
|
|
|
|
|
|
|
|
|
|
|
|
option(WINDOWS "Whether the build target is Windows or not." OFF)
|
|
|
|
set(STATICC TRUE)
|
|
|
|
|
|
|
|
include(CMakeLists.txt.in)
|
|
|
|
include_pkmnlib()
|
|
|
|
|
|
|
|
file(GLOB_RECURSE SRC_FILES src/*.cpp src/*.hpp)
|
|
|
|
add_executable(PokemonScriptTester ${SRC_FILES})
|
|
|
|
target_precompile_headers(PokemonScriptTester PUBLIC src/Precompiled.hxx)
|
|
|
|
add_definitions(-DLEVEL_U8)
|
|
|
|
|
|
|
|
SET(_LINKS Arbutils CreatureLib pkmnLib -lpthread)
|
|
|
|
target_link_libraries(PokemonScriptTester PUBLIC ${_LINKS})
|
|
|
|
target_compile_options(PokemonScriptTester PRIVATE -Wall -Wextra -Werror)
|