Patches all CMakeLists.txt to new CMake version
This commit is contained in:
parent
26c5448a30
commit
abef4ed9a6
120
CMakeLists.txt
120
CMakeLists.txt
|
@ -184,62 +184,62 @@ endif ()
|
||||||
|
|
||||||
# PROGRAMS:
|
# PROGRAMS:
|
||||||
add_executable(breakhack
|
add_executable(breakhack
|
||||||
src/main
|
src/main.c
|
||||||
src/texture
|
src/texture.c
|
||||||
src/screenresolution
|
src/screenresolution.c
|
||||||
src/sprite
|
src/sprite.c
|
||||||
src/sprite_util
|
src/sprite_util.c
|
||||||
src/util
|
src/util.c
|
||||||
src/event
|
src/event.c
|
||||||
src/player
|
src/player.c
|
||||||
src/save
|
src/save.c
|
||||||
src/map
|
src/map.c
|
||||||
src/map_lua
|
src/map_lua.c
|
||||||
src/camera
|
src/camera.c
|
||||||
src/timer
|
src/timer.c
|
||||||
src/roommatrix
|
src/roommatrix.c
|
||||||
src/position
|
src/position.c
|
||||||
src/monster
|
src/monster.c
|
||||||
src/stats
|
src/stats.c
|
||||||
src/actiontext
|
src/actiontext.c
|
||||||
src/random
|
src/random.c
|
||||||
src/time
|
src/time.c
|
||||||
src/linkedlist
|
src/linkedlist.c
|
||||||
src/hashtable
|
src/hashtable.c
|
||||||
src/gui
|
src/gui.c
|
||||||
src/item
|
src/item.c
|
||||||
src/item_builder
|
src/item_builder.c
|
||||||
src/pointer
|
src/pointer.c
|
||||||
src/gui_button
|
src/gui_button.c
|
||||||
src/particle_engine
|
src/particle_engine.c
|
||||||
src/particle_emitter
|
src/particle_emitter.c
|
||||||
src/menu
|
src/menu.c
|
||||||
src/collisions
|
src/collisions.c
|
||||||
src/keyboard
|
src/keyboard.c
|
||||||
src/input
|
src/input.c
|
||||||
src/mixer
|
src/mixer.c
|
||||||
src/io_util
|
src/io_util.c
|
||||||
src/physfsrwops
|
src/physfsrwops.c
|
||||||
src/skillbar
|
src/skillbar.c
|
||||||
src/texturecache
|
src/texturecache.c
|
||||||
src/skill
|
src/skill.c
|
||||||
src/projectile
|
src/projectile.c
|
||||||
src/vector2d
|
src/vector2d.c
|
||||||
src/map_room_modifiers
|
src/map_room_modifiers.c
|
||||||
sqlite3/sqlite3
|
sqlite3/sqlite3.c
|
||||||
src/db
|
src/db.c
|
||||||
src/settings
|
src/settings.c
|
||||||
src/actiontextbuilder
|
src/actiontextbuilder.c
|
||||||
src/animation
|
src/animation.c
|
||||||
src/trap
|
src/trap.c
|
||||||
src/artifact
|
src/artifact.c
|
||||||
src/screen
|
src/screen.c
|
||||||
src/hiscore
|
src/hiscore.c
|
||||||
src/object
|
src/object.c
|
||||||
src/gui_util
|
src/gui_util.c
|
||||||
src/tooltip
|
src/tooltip.c
|
||||||
src/gamecontroller
|
src/gamecontroller.c
|
||||||
src/effect_util
|
src/effect_util.c
|
||||||
${STEAM_SOURCES}
|
${STEAM_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -283,19 +283,19 @@ endif (MSVC)
|
||||||
IF (CMOCKA_FOUND AND NOT OSX AND NOT CLANG)
|
IF (CMOCKA_FOUND AND NOT OSX AND NOT CLANG)
|
||||||
find_package(Threads REQUIRED)
|
find_package(Threads REQUIRED)
|
||||||
enable_testing()
|
enable_testing()
|
||||||
add_executable(test_util test/test_util src/util)
|
add_executable(test_util test/test_util.c src/util.c)
|
||||||
target_link_libraries(test_util ${CMOCKA_LIBRARY})
|
target_link_libraries(test_util ${CMOCKA_LIBRARY})
|
||||||
add_test(test_util test_util)
|
add_test(test_util test_util)
|
||||||
|
|
||||||
add_executable(test_linkedlist test/test_linkedlist src/linkedlist src/util)
|
add_executable(test_linkedlist test/test_linkedlist.c src/linkedlist.c src/util.c)
|
||||||
target_link_libraries(test_linkedlist ${CMOCKA_LIBRARY})
|
target_link_libraries(test_linkedlist ${CMOCKA_LIBRARY})
|
||||||
add_test(test_linkedlist test_linkedlist)
|
add_test(test_linkedlist test_linkedlist)
|
||||||
|
|
||||||
add_executable(test_hashtable test/test_hashtable src/hashtable src/util)
|
add_executable(test_hashtable test/test_hashtable.c src/hashtable.c src/util.c)
|
||||||
target_link_libraries(test_hashtable ${CMOCKA_LIBRARY})
|
target_link_libraries(test_hashtable ${CMOCKA_LIBRARY})
|
||||||
add_test(test_hashtable test_hashtable)
|
add_test(test_hashtable test_hashtable)
|
||||||
|
|
||||||
add_executable(test_input test/test_input src/input src/keyboard)
|
add_executable(test_input test/test_input.c src/input.c src/keyboard.c)
|
||||||
target_link_libraries(test_input
|
target_link_libraries(test_input
|
||||||
${CMOCKA_LIBRARY}
|
${CMOCKA_LIBRARY}
|
||||||
${SDL2_LIBRARY}
|
${SDL2_LIBRARY}
|
||||||
|
|
|
@ -8,7 +8,7 @@ if (NOT CMAKE_BUILD_TYPE)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
add_library(bh_random STATIC
|
add_library(bh_random STATIC
|
||||||
src/bh_random
|
src/bh_random.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
IF ( MSVC )
|
IF ( MSVC )
|
||||||
|
|
|
@ -7,12 +7,12 @@ endif ()
|
||||||
|
|
||||||
|
|
||||||
add_executable(checksumtool
|
add_executable(checksumtool
|
||||||
src/checksum
|
src/checksum.c
|
||||||
)
|
)
|
||||||
target_compile_definitions(checksumtool PUBLIC EXECUTABLE=1)
|
target_compile_definitions(checksumtool PUBLIC EXECUTABLE=1)
|
||||||
|
|
||||||
add_library(checksum
|
add_library(checksum
|
||||||
src/checksum
|
src/checksum.c
|
||||||
)
|
)
|
||||||
|
|
||||||
IF ( MSVC )
|
IF ( MSVC )
|
||||||
|
|
|
@ -71,7 +71,7 @@ static char *artifacts_tooltip[] = {
|
||||||
" You just picked up your first artifact!", "",
|
" You just picked up your first artifact!", "",
|
||||||
"",
|
"",
|
||||||
" Your current artifacts and corresponding level are", "",
|
" Your current artifacts and corresponding level are", "",
|
||||||
" listed next to your skills." "",
|
" listed next to your skills.", "",
|
||||||
"",
|
"",
|
||||||
"",
|
"",
|
||||||
" Artifacts have mystical effects that improve your offensive", "",
|
" Artifacts have mystical effects that improve your offensive", "",
|
||||||
|
|
Loading…
Reference in New Issue