Skip to content

Commit

Permalink
fix(cmakelists): config for directories
Browse files Browse the repository at this point in the history
  • Loading branch information
TheRealPad committed Feb 28, 2024
1 parent 886c06a commit cd77b3e
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ add_executable(${NAME} main.cpp ${SRC})

set_target_properties(${NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})

include_directories(${NAME} PUBLIC src/Calculator)
include_directories(${NAME} PUBLIC src/Error)
include_directories(src/Calculator)
include_directories(src/Error)

add_compile_options(-fPIC)

Expand All @@ -47,6 +47,3 @@ include(GoogleTest)
gtest_discover_tests(${TEST_NAME})

set_target_properties(${TEST_NAME} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${PROJECT_SOURCE_DIR})

include_directories(${TEST_NAME} PUBLIC src/Calculator)
include_directories(${TEST_NAME} PUBLIC src/Error)

0 comments on commit cd77b3e

Please sign in to comment.