summaryrefslogtreecommitdiff
path: root/src/test/CMakeLists.txt
blob: 0d903beebd64ff4e570fbf03560c35a8df7ef753 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# Include the directory itself as a path to include directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(PARSER_FILES ../parser/lex.yy.c ../parser/y.tab.c)

add_executable(testfunc_001_lex WIN32 testfunc_001_lex.c ${PARSER_FILES} )
add_executable(testfunc_002_parse WIN32 testfunc_002_parse.c ${PARSER_FILES} )
add_executable(testfunc_003_loadress WIN32 testfunc_003_loadress.c ${PARSER_FILES} ../loader.c ../utils.c ../graphic.c )
target_link_libraries(testfunc_003_loadress SDL_image)
add_executable(testfunc_004_buildterrain WIN32 testfunc_004_buildterrain.c ${PARSER_FILES} ../loader.c ../graphic.c ../utils.c )
target_link_libraries(testfunc_004_buildterrain SDL_image)