-
Notifications
You must be signed in to change notification settings - Fork 6
/
CMakeLists.txt
30 lines (22 loc) · 655 Bytes
/
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
cmake_minimum_required(VERSION 2.8)
project(plugin_architecture)
set(TARGET_NAME "calculator")
add_executable(${TARGET_NAME}
"src/main.cpp"
)
target_include_directories(${TARGET_NAME} PRIVATE
"src/engine"
"src/api"
)
target_link_libraries(${TARGET_NAME}
"-Wl,-rpath=$ENV{HOME}/Desktop/calculator/plugins"
"-Wl,-rpath=$ENV{HOME}/Desktop/calculator/lib"
"engine"
"api"
)
add_subdirectory("src/api")
add_subdirectory("src/engine")
add_subdirectory("src/plugin_addition")
add_subdirectory("src/plugin_subtraction")
file(MAKE_DIRECTORY "$ENV{HOME}/Desktop/calculator")
set(CMAKE_CXX_FLAGS "-std=gnu++11 ${CMAKE_CXX_FLAGS}")