Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cmake_minimum_required(VERSION 3.12)
- project(objectlib LANGUAGES CXX)
- add_library(box OBJECT box.cc box.hh)
- add_library(make_box OBJECT make_box.cc make_box.hh)
- target_link_libraries(make_box PUBLIC box)
- add_executable(main main.cc)
- target_link_libraries(main PUBLIC make_box)
Add Comment
Please, Sign In to add comment