summaryrefslogtreecommitdiff
path: root/Tests/SameName/Exe1/CMakeLists.txt
blob: b9182f2097de86db809c543ec5603b174751e723 (plain)
1
2
3
4
5
6
7
8
9
10
11
# a target with the same name as a target in a different dir
add_executable(mytest_exe conly.c)
set_target_properties(mytest_exe PROPERTIES OUTPUT_NAME mytest)
target_link_libraries(mytest_exe mytest)

# and two targets in the same dir with the same name
add_library(mytest2 ../Lib1/libc1.c)

add_executable(mytest2_exe conly.c)
set_target_properties(mytest2_exe PROPERTIES OUTPUT_NAME mytest2)
target_link_libraries(mytest2_exe mytest2)