-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0e28b8c
commit 4c923f4
Showing
1 changed file
with
8 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
cmake_minimum_required(VERSION 3.19) | ||
|
||
project(repl VERSION 0.0.1 LANGUAGES C HOMEPAGE_URL https://atsign.com) | ||
project(repl) | ||
|
||
include(FetchContent) | ||
|
||
find_package(atsdk REQUIRED CONFIG) | ||
FetchContent_Declare( | ||
atsdk | ||
SOURCE_DIR ${CMAKE_CURRENT_LIST_DIR}/../../.. | ||
) | ||
|
||
message(STATUS "atsdk was found") | ||
FetchContent_MakeAvailable(atsdk) | ||
|
||
add_executable(repl) | ||
add_executable(repl ${CMAKE_CURRENT_LIST_DIR}/src/main.c) | ||
|
||
target_sources(repl PRIVATE src/main.c) | ||
target_link_libraries(repl PRIVATE atsdk::atclient) | ||
target_link_libraries(repl PRIVATE atclient) | ||
|
||
# the target executable will be delivered to the packages/repl/bin directory, when building the `install` target. | ||
install(TARGETS repl DESTINATION ${CMAKE_CURRENT_LIST_DIR}/bin) |