blob: c74d26431b8a3b67238bc85f09bd163cb4ccee70 (
plain)
1
2
3
4
5
6
7
8
9
|
add_library(interface_lib INTERFACE)
target_compile_definitions(interface_lib INTERFACE COMPILED_WITH_INTERFACE_LIB)
add_executable(interface_exe empty.c)
target_link_libraries(interface_exe PRIVATE inteface_lib)
set_property(TARGET interface_exe PROPERTY ENABLE_EXPORTS ON)
set_property(TARGET interface_exe PROPERTY RUNTIME_OUTPUT_DIRECTORY bin)
set_property(TARGET interface_exe PROPERTY ARCHIVE_OUTPUT_DIRECTORY lib)
set_property(TARGET interface_exe PROPERTY OUTPUT_NAME my_interface_exe)
set_property(TARGET interface_exe PROPERTY SUFFIX .myexe)
|