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 $<$:/Wall> $<$:-Wall -Wextra -pedantic> $<$:-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}")