Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- add_library(mylib SHARED lib.cpp) #creates libmylib.so
- add_executable(myapp main.cpp)
- target_link_libraries(myapp my-lib)
- install(TARGETS mylib myapp
- RUNTIME DESTINATION bin
- LIBRARY DESTINATION lib
- )
Add Comment
Please, Sign In to add comment