Skip to content

Commit

Permalink
add: include_directories
Browse files Browse the repository at this point in the history
  • Loading branch information
guinpen98 committed Oct 31, 2023
1 parent 7ffa5f5 commit 72c2ad0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Project/UnitTest/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ set(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/bin)
include_directories(
${CMAKE_CURRENT_SOURCE_DIR}/../../Library
${CMAKE_CURRENT_SOURCE_DIR}/../../ExternalLibrary/googletest/googletest/include
${CMAKE_CURRENT_SOURCE_DIR}/../../ExternalLibrary
)

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../ExternalLibrary/googletest ${CMAKE_BINARY_DIR}/googletest)
Expand All @@ -23,7 +24,7 @@ foreach(TEST_SOURCE ${TEST_SOURCES})
add_executable(${TARGET_NAME} ${TEST_SOURCE})
target_link_libraries(${TARGET_NAME} gtest_main)
add_test(
NAME ${TARGET_NAME}
NAME ${TARGET_NAME}
COMMAND ${TARGET_NAME}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/bin
)
Expand Down

0 comments on commit 72c2ad0

Please sign in to comment.