mirror of
https://github.com/ScrelliCopter/tmx2gba.git
synced 2025-02-21 03:29:25 +11:00
29 lines
881 B
CMake
29 lines
881 B
CMake
add_executable(tmx2gba
|
|
argparse.hpp argparse.cpp
|
|
tmxreader.hpp tmxreader.cpp
|
|
convert.hpp convert.cpp
|
|
headerwriter.hpp headerwriter.cpp
|
|
swriter.hpp swriter.cpp
|
|
tmx2gba.cpp)
|
|
|
|
set_target_properties(tmx2gba PROPERTIES CXX_STANDARD 20)
|
|
|
|
# Enable strong warnings
|
|
target_compile_options(tmx2gba PRIVATE
|
|
$<$<CXX_COMPILER_ID:MSVC>:/Wall>
|
|
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-Wall -Wextra -pedantic>
|
|
$<$<CXX_COMPILER_ID:Clang,AppleClang>:-Weverything -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-padded>)
|
|
|
|
target_link_libraries(tmx2gba tmxlite)
|
|
|
|
if (TMX2GBA_DKP_INSTALL)
|
|
if (DEFINED ENV{DEVKITPRO})
|
|
set(TMX2GBA_INSTALL_DESTINATION "$ENV{DEVKITPRO}/tools/bin")
|
|
else()
|
|
set(TMX2GBA_INSTALL_DESTINATION /opt/devkitpro/tools/bin)
|
|
endif()
|
|
else()
|
|
set(TMX2GBA_INSTALL_DESTINATION bin)
|
|
endif()
|
|
install(TARGETS tmx2gba RUNTIME DESTINATION "${TMX2GBA_INSTALL_DESTINATION}")
|