Skip to content

Commit

Permalink
Update CMakeLists.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
michalmaj authored Feb 6, 2024
1 parent 8767018 commit 4aece02
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions homework/schedule/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)

include_directories(.)

add_executable(${PROJECT_NAME} main.cpp)
add_executable(${PROJECT_NAME}-ut tests/catch/catch_amalgamated.cpp tests/catch/catch_main.cpp tests/tests.cpp)
add_executable(${PROJECT_NAME}-ut-bonus tests/catch/catch_amalgamated.cpp tests/catch/catch_main.cpp tests/tests-bonus.cpp)
add_executable(${PROJECT_NAME} main.cpp schedule.cpp)
add_executable(${PROJECT_NAME}-ut schedule.cpp tests/catch_amalgamated.cpp tests/catch_main.cpp tests/tests.cpp)
add_executable(${PROJECT_NAME}-ut-bonus tests/catch_amalgamated.cpp tests/catch_main.cpp tests/tests-bonus.cpp)

target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Werror -Wpedantic)
target_compile_options(${PROJECT_NAME}-ut PRIVATE -Wall -Wextra -Werror -Wpedantic)
target_compile_options(${PROJECT_NAME}-ut-bonus PRIVATE -Wall -Wextra -Werror -Wpedantic)
target_compile_options(${PROJECT_NAME} PRIVATE -Wall -Wextra -Wpedantic)
#target_compile_options(${PROJECT_NAME}-ut PRIVATE -Wall -Wextra -Werror -Wpedantic)
target_compile_options(${PROJECT_NAME}-ut PRIVATE -Wall -Wextra -Wpedantic)
target_compile_options(${PROJECT_NAME}-ut-bonus PRIVATE -Wall -Wextra -Wpedantic)

enable_testing()
add_test(NAME schedule-tests COMMAND ${PROJECT_NAME}-ut)

0 comments on commit 4aece02

Please sign in to comment.