Skip to content

Commit 8d9e8eb

Browse files
committed
rm RUNTIME_OUTPUT_DIRECTORY props
1 parent c061b27 commit 8d9e8eb

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

app/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# Define executable and its properties
1+
# ---- Define executable ----
2+
23
add_executable(Application App.cpp)
34
target_link_libraries(Application PRIVATE Core)
4-
set_target_properties(Application PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Application)
55
install(TARGETS Application)

library/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ set(LIBRARY_SOURCES
1010
${SRCROOT}/Lib.cpp
1111
)
1212

13-
# Define library and its properties
13+
# ---- Define library ----
1414
add_library(Core ${LIBRARY_HEADERS} ${LIBRARY_SOURCES})
1515
target_include_directories(Core PUBLIC ${PROJECT_SOURCE_DIR}/library/include)
1616
target_compile_features(Core PUBLIC cxx_std_17)

library/test/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,14 @@
1+
# ---- Dependencies ----
2+
13
include(Catch)
24
set(CMAKE_CATCH_DISCOVER_TESTS_DISCOVERY_MODE PRE_TEST)
35

6+
# ---- Define executable ----
7+
48
add_executable(CoreTests ${PROJECT_SOURCE_DIR}/library/test/Tests.cpp)
59
target_link_libraries(CoreTests PRIVATE Core Catch2::Catch2WithMain)
610
target_compile_features(CoreTests PRIVATE cxx_std_17)
7-
set_target_properties(CoreTests PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/Core/Tests)
11+
12+
# ---- Tests ----
13+
814
catch_discover_tests(CoreTests WORKING_DIRECTORY $<TARGET_FILE_DIR:Core>)

0 commit comments

Comments
 (0)