You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
14 lines
432 B
14 lines
432 B
5 years ago
|
cmake_minimum_required(VERSION 3.13)
|
||
|
project(Object)
|
||
|
enable_language(CXX)
|
||
|
|
||
|
add_library(c_object_lib OBJECT ../empty.c)
|
||
|
add_executable(c_object_exe ../empty.c)
|
||
|
target_link_libraries(c_object_exe PRIVATE c_object_lib)
|
||
|
|
||
|
add_library(cxx_object_lib OBJECT ../empty.cxx)
|
||
|
add_executable(cxx_object_exe ../empty.cxx)
|
||
|
target_link_libraries(cxx_object_exe PRIVATE cxx_object_lib)
|
||
|
|
||
|
install(TARGETS c_object_exe cxx_object_exe DESTINATION bin)
|