Created
August 18, 2020 07:09
-
-
Save sepfy/21e09b4d22b23950f3a087d6d8dd2388 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 3.1) | |
project(samples) | |
add_subdirectory(func) | |
add_executable(main main.c) | |
# Install target | |
install(TARGETS main | |
DESTINATION ${CMAKE_INSTALL_PREFIX}/bin/ | |
) | |
# Link libraries | |
include_directories(${func_SOURCE_DIR}/) | |
add_executable(main_func main_func.c) | |
target_link_libraries(main_func func pthread) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment