Cleaned CMakeLists.txt

This commit is contained in:
SlyVTT 2023-08-08 09:52:34 +02:00
parent 53b0ddf750
commit d84fd7f886

View file

@ -18,28 +18,6 @@ set(COLORMODE_cg EGA64)
fxconv_declare_converters(assets/converters.py)
add_custom_command(
COMMENT "Convert Tiled TMX map to usable JSON file"
COMMAND tiled --export-tileset json tilesetnpp.tsx tilesetnpp.json
COMMAND find | grep .*.tmx | sed 's/.tmx//g' | xargs -l bash -c 'tiled --export-map json $$0.tmx $$0.json'
WORKING_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/assets/
OUTPUT "${CMAKE_CURRENT_LIST_DIR}/assets/level0.json"
OUTPUT "${CMAKE_CURRENT_LIST_DIR}/assets/level1.json"
OUTPUT "${CMAKE_CURRENT_LIST_DIR}/assets/level2.json"
OUTPUT "${CMAKE_CURRENT_LIST_DIR}/assets/level3.json"
# if several levels/maps are created, just copy the previous line and change the .json name with the new level/map
DEPENDS assets/converters.py
assets/tileset.png
assets/tilesetnpp.tsx
assets/level0.tmx
assets/level1.tmx
assets/level2.tmx
assets/level3.tmx
# if several levels/maps are created, just copy the previous line and change the .json name with the new level/map
)
set(SOURCES
src/main.c
src/map.c
@ -51,10 +29,6 @@ set(SOURCES
)
# Shared assets, fx-9860G-only assets and fx-CG-50-only assets
set(ASSETS
#assets/level0.json
#assets/level1.json
#assets/level2.json
#assets/level3.json
assets/WorldRPG.world
# ...
)