From bf5f10bccd4aa8f3c5e1d88f9e85f571e399d0ca Mon Sep 17 00:00:00 2001 From: Carson Bush Date: Tue, 14 May 2024 13:48:17 -0600 Subject: [PATCH 1/2] add email --- email.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/email.txt b/email.txt index e69de29..42bedcc 100644 --- a/email.txt +++ b/email.txt @@ -0,0 +1 @@ +hyperdriveguy@gmail.com \ No newline at end of file From 6169a963bb321db2c3feff1ebc739570f5213b00 Mon Sep 17 00:00:00 2001 From: Carson Bush Date: Tue, 14 May 2024 14:43:38 -0600 Subject: [PATCH 2/2] Solutions --- problem1/CMakeLists.txt | 6 +++++- problem2/CMakeLists.txt | 5 ++++- problem2/apps/CMakeLists.txt | 4 +++- problem2/include/CMakeLists.txt | 7 ++++++- 4 files changed, 18 insertions(+), 4 deletions(-) diff --git a/problem1/CMakeLists.txt b/problem1/CMakeLists.txt index baaa2f2..22e339c 100644 --- a/problem1/CMakeLists.txt +++ b/problem1/CMakeLists.txt @@ -1 +1,5 @@ -#Insert your code here :) (This is the way!) \ No newline at end of file +#Insert your code here :) (This is the way!) +cmake_minimum_required(VERSION 3.20.0) +project(Perform) +include_directories(harp lib) +add_executable(perform main.c harp/harp.c lib/strings.c) \ No newline at end of file diff --git a/problem2/CMakeLists.txt b/problem2/CMakeLists.txt index a87413c..e3d95d5 100644 --- a/problem2/CMakeLists.txt +++ b/problem2/CMakeLists.txt @@ -1 +1,4 @@ -#Insert your code here :) \ No newline at end of file +#Insert your code here :) +cmake_minimum_required(VERSION 3.2.00) +project(Hello VERSION 0.1 LANGUAGES C) +add_subdirectory(include apps) \ No newline at end of file diff --git a/problem2/apps/CMakeLists.txt b/problem2/apps/CMakeLists.txt index a87413c..0573cd0 100644 --- a/problem2/apps/CMakeLists.txt +++ b/problem2/apps/CMakeLists.txt @@ -1 +1,3 @@ -#Insert your code here :) \ No newline at end of file +#Insert your code here :) +add_executable(hello main.c) +target_link_libraries(hello PRIVATE myActionLib) \ No newline at end of file diff --git a/problem2/include/CMakeLists.txt b/problem2/include/CMakeLists.txt index a87413c..92c7ced 100644 --- a/problem2/include/CMakeLists.txt +++ b/problem2/include/CMakeLists.txt @@ -1 +1,6 @@ -#Insert your code here :) \ No newline at end of file +#Insert your code here :) +add_library(myActionLib SHARED action.c) +target_include_directories(myActionLib INTERFACE .) +add_library(myMessageLib SHARED message.c) +target_include_directories(myMessageLib PRIVATE .) +target_link_libraries(myActionLib PRIVATE myMessageLib) \ No newline at end of file