cmake_minimum_required(VERSION 3.15)
-project(priority_queue)
+project(priority-queue)
set(CMAKE_C_STANDARD 11)
+set(CMAKE_BUILD_TYPE DEBUG)
file(GLOB_RECURSE SRC
src/*.c
- priority_queue-test/*.c
+ priority-queue-test/*.c
)
-add_executable(priority_queue-test ${SRC})
-target_include_directories(priority_queue-test
+add_executable(priority-queue-test ${SRC})
+add_compile_options("-Wall" "-Wextra" "-ggdb")
+target_compile_options(priority-queue-test PRIVATE "-pedantic-errors")
+target_include_directories(priority-queue-test
PUBLIC src
- PUBLIC priority_queue-test
+ PUBLIC priority-queue-test
)
-target_link_libraries(priority_queue-test PRIVATE check)
+target_link_libraries(priority-queue-test PRIVATE check)