Created
April 29, 2020 10:04
-
-
Save quocle108/25fc0b38e32b862021d32f31853a1e79 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake_minimum_required(VERSION 2.8.9) | |
project (phone) | |
#Define GNU standard installation directories | |
include( GNUInstallDirs ) | |
#In case load library from system. For the static library and shared library: | |
#set ( PROJECT_LINK_LIBS libsoftware.a libhardware.dylib) | |
# link library from installed directory | |
#link_directories( ${CMAKE_INSTALL_FULL_LIBDIR} ) | |
add_executable(phone phone.cpp) | |
#Link from installed packages | |
target_link_libraries( phone software hardware ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment