-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
41 lines (31 loc) · 1.04 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
cmake_minimum_required(VERSION 3.13)
cmake_policy(SET CMP0053 NEW)
# Our Plugin project
project(StarterPlugin VERSION 1.0.0)
# Set the build type
message("CMAKE_BUILD_TYPE = ${CMAKE_BUILD_TYPE}")
IF(CMAKE_BUILD_TYPE MATCHES Debug)
message("Debug build.")
ELSEIF(CMAKE_BUILD_TYPE MATCHES Release)
message("Release build.")
ELSE()
message("Other (not Debug nor Release type of build)")
ENDIF()
# The source of the library we want to build
add_library(${PROJECT_NAME} SHARED src/generated/64/plugins/src/StarterPlugin/StarterPlugin.c)
#Add the VM dependency
add_subdirectory(dependencies/pharo-vm)
target_link_libraries(${PROJECT_NAME} PharoVMCore)
target_include_directories(${PROJECT_NAME} PUBLIC ${PROJECT_BINARY_DIR})
# Try next:
# PRIVATE dependencies/shinythirdparty/target/debug
target_link_directories(${PROJECT_NAME}
PRIVATE src/generated/64/plugins/src/StarterPlugin
)
# Try next:
# target_link_directories(${PROJECT_NAME}
# PRIVATE shinythirdparty
# )
# Try next:
# target_link_libraries(${PROJECT_NAME}
# shinythirdparty)