2019-06-29 15:35:24 +02:00
|
|
|
cmake_minimum_required (VERSION 3.2)
|
2019-06-29 15:56:13 +02:00
|
|
|
project(Lightswitch VERSION 1 LANGUAGES CXX)
|
2019-06-29 15:35:24 +02:00
|
|
|
set_property(GLOBAL PROPERTY CMAKE_CXX_STANDARD 17 PROPERTY CMAKE_CXX_STANDARD_REQUIRED TRUE)
|
|
|
|
|
2019-06-29 15:53:37 +02:00
|
|
|
set(source_DIR ${CMAKE_SOURCE_DIR}/src/main/cpp)
|
2019-06-29 18:13:36 +02:00
|
|
|
|
2019-06-29 15:56:13 +02:00
|
|
|
include_directories(${source_DIR}/include)
|
2019-06-29 18:13:36 +02:00
|
|
|
|
2019-06-29 15:53:37 +02:00
|
|
|
add_library(lightswitch SHARED ${source_DIR}/lightswitch.cpp)
|
2019-06-29 15:35:24 +02:00
|
|
|
target_link_libraries(lightswitch ${source_DIR}/lib/${ANDROID_ABI}/libunicorn.a)
|