Skip to content

Commit b5caa30

Browse files
committed
Prepared Problem 1 and 2
1 parent 7d0c5a8 commit b5caa30

File tree

3 files changed

+3
-24
lines changed

3 files changed

+3
-24
lines changed

problem2/CMakeLists.txt

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1 @@
1-
cmake_minimum_required(VERSION 3.11)
2-
3-
project(
4-
CMake_Test
5-
VERSION 1.0
6-
DESCRIPTION "Test"
7-
LANGUAGES C
8-
)
9-
10-
add_subdirectory(include)
11-
12-
add_subdirectory(apps)
1+
#Insert your code here :)

problem2/apps/CMakeLists.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1 @@
1-
add_executable(hello main.c)
2-
3-
target_link_libraries(hello PRIVATE myActionLib)
1+
#Insert your code here :)

problem2/include/CMakeLists.txt

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1 @@
1-
add_library(myActionLib SHARED action.c action.h)
2-
3-
add_library(myMessageLib SHARED message.c message.h)
4-
5-
target_include_directories(myActionLib INTERFACE ../include)
6-
7-
target_include_directories(myMessageLib PRIVATE ../include)
8-
9-
target_link_libraries(myActionLib PRIVATE myMessageLib)
1+
#Insert your code here :)

0 commit comments

Comments
 (0)