-
Notifications
You must be signed in to change notification settings - Fork 46
Open
Description
$<TARGET_FILE:main>
Get full path of target, by writing to file:
cmake_minimum_required(VERSION 3.5)
project(x)
include(arcpkg.cmake)
add_executable(test test.c)
set(test_location "$<TARGET_FILE:test>")
message(STATUS "test_location: ${test_location}")
message(STATUS "${test_location}: ${${test_location}}")
file(GENERATE OUTPUT "${CMAKE_BINARY_DIR}/my_install.cmake" CONTENT "${test_location}")
file:///D:/soft/cmake/3.30.0/doc/cmake/html/command/file.html#generate
Metadata
Metadata
Assignees
Labels
No labels