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 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