| 1 |
########################################################################### |
| 2 |
# fheroes2: https://github.com/ihhub/fheroes2 # |
| 3 |
# Copyright (C) 2022 - 2025 # |
| 4 |
# # |
| 5 |
# This program is free software; you can redistribute it and/or modify # |
| 6 |
# it under the terms of the GNU General Public License as published by # |
| 7 |
# the Free Software Foundation; either version 2 of the License, or # |
| 8 |
# (at your option) any later version. # |
| 9 |
# # |
| 10 |
# This program is distributed in the hope that it will be useful, # |
| 11 |
# but WITHOUT ANY WARRANTY; without even the implied warranty of # |
| 12 |
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # |
| 13 |
# GNU General Public License for more details. # |
| 14 |
# # |
| 15 |
# You should have received a copy of the GNU General Public License # |
| 16 |
# along with this program; if not, write to the # |
| 17 |
# Free Software Foundation, Inc., # |
| 18 |
# 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # |
| 19 |
########################################################################### |
| 20 |
|
| 21 |
add_compile_options("$<$<COMPILE_LANG_AND_ID:C,AppleClang,Clang,GNU>:${GNU_CC_WARN_OPTS}>") |
| 22 |
add_compile_options("$<$<COMPILE_LANG_AND_ID:CXX,AppleClang,Clang,GNU>:${GNU_CXX_WARN_OPTS}>") |
| 23 |
add_compile_options("$<$<OR:$<COMPILE_LANG_AND_ID:C,MSVC>,$<COMPILE_LANG_AND_ID:CXX,MSVC>>:${MSVC_CC_WARN_OPTS}>") |
| 24 |
|
| 25 |
# MSVC: suppress deprecation warnings |
| 26 |
add_compile_definitions($<$<OR:$<COMPILE_LANG_AND_ID:C,MSVC>,$<COMPILE_LANG_AND_ID:CXX,MSVC>>:_CRT_SECURE_NO_WARNINGS>) |
| 27 |
add_compile_definitions($<$<CONFIG:Debug>:WITH_DEBUG>) |
| 28 |
|
| 29 |
add_executable(82m2wav 82m2wav.cpp) |
| 30 |
add_executable(bin2txt bin2txt.cpp) |
| 31 |
add_executable(extractor extractor.cpp) |
| 32 |
add_executable(h2dmgr h2dmgr.cpp) |
| 33 |
add_executable(icn2img icn2img.cpp) |
| 34 |
add_executable(pal2img pal2img.cpp) |
| 35 |
add_executable(til2img til2img.cpp) |
| 36 |
add_executable(xmi2midi xmi2midi.cpp) |
| 37 |
|
| 38 |
target_link_libraries(82m2wav engine) |
| 39 |
target_link_libraries(bin2txt engine) |
| 40 |
target_link_libraries(extractor engine) |
| 41 |
target_link_libraries(h2dmgr engine) |
| 42 |
target_link_libraries(icn2img engine) |
| 43 |
target_link_libraries(pal2img engine) |
| 44 |
target_link_libraries(til2img engine) |
| 45 |
target_link_libraries(xmi2midi engine) |