-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
1 changed file
with
4 additions
and
4 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,15 +1,15 @@ | ||
cmake_minimum_required(VERSION 3.10) | ||
project(MyProgram) | ||
project(IPC) | ||
|
||
set(CMAKE_CXX_STANDARD 11) | ||
|
||
# Add your source files | ||
add_executable(my_program main.cpp) | ||
add_executable(ipc_util main.cpp) | ||
|
||
# Specify the path to libcurl | ||
set(CURL_LIBRARY "lib/libcurl") | ||
set(CURL_INCLUDE_DIR "include") | ||
|
||
# Link against libcurl | ||
target_include_directories(my_program PRIVATE "${CURL_INCLUDE_DIR}") | ||
target_link_libraries(my_program PRIVATE "${CURL_LIBRARY}") | ||
target_include_directories(IPC PRIVATE "${CURL_INCLUDE_DIR}") | ||
target_link_libraries(IPC PRIVATE "${CURL_LIBRARY}") |