File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -16,14 +16,6 @@ file(GLOB SOURCES
1616 src/utils/*.c
1717 src/parsing/*.c )
1818
19- if (CMAKE_BUILD_TYPE STREQUAL "Tests" )
20- list (REMOVE_ITEM SOURCES "${CMAKE_CURRENT_SOURCE_DIR} /src/main.c" )
21- list (APPEND SOURCES
22- tests/tests_parsing.c
23- tests/tests_corewar.c)
24- find_package (criterion REQUIRED )
25- endif ()
26-
2719find_package (PkgConfig REQUIRED )
2820pkg_check_modules (SDL2 REQUIRED sdl2 )
2921pkg_check_modules (SDL2_MIXER REQUIRED SDL2_mixer )
@@ -42,11 +34,6 @@ if(CMAKE_BUILD_TYPE STREQUAL "Debug")
4234 add_link_options (-fsanitize=address )
4335endif ()
4436
45- if (CMAKE_BUILD_TYPE STREQUAL "Tests" )
46- add_compile_options (--coverage )
47- add_link_options (--coverage )
48- endif ()
49-
5037add_executable (corewar ${SOURCES} )
5138
5239target_link_libraries (corewar PRIVATE
@@ -55,7 +42,3 @@ target_link_libraries(corewar PRIVATE
5542 ${SDL2_LIBRARIES}
5643 ${SDL2_MIXER_LIBRARIES}
5744 m pthread dl rt X11 )
58-
59- if (CMAKE_BUILD_TYPE STREQUAL "Tests" )
60- target_link_libraries (corewar PRIVATE criterion )
61- endif ()
Original file line number Diff line number Diff line change @@ -19,14 +19,6 @@ debug:
1919 @cmake --build $(BUILD_DIR ) --parallel 12
2020 @cp $(BUILD_DIR ) /$(NAME ) .
2121
22- .PHONY : tests
23- tests :
24- @mkdir -p $(BUILD_DIR )
25- @cd $(BUILD_DIR ) && cmake -DCMAKE_BUILD_TYPE=Tests ..
26- @cmake --build $(BUILD_DIR ) --parallel 12
27- @cp $(BUILD_DIR ) /$(NAME ) .
28- @./$(NAME )
29-
3022.PHONY : clean
3123clean :
3224 @rm -rf $(BUILD_DIR )
Original file line number Diff line number Diff line change @@ -24,6 +24,3 @@ cmake -DBUILD_EXAMPLES=ON ..
2424make -j$( nproc)
2525sudo make install
2626cd ../.. && rm -rf raylib
27-
28- # Uncomment to install criterion (for testing purposes only)
29- # sudo apt install libcriterion-dev
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments