Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save quocle108/25fc0b38e32b862021d32f31853a1e79 to your computer and use it in GitHub Desktop.
Save quocle108/25fc0b38e32b862021d32f31853a1e79 to your computer and use it in GitHub Desktop.
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