2017-12-13 22:29:28 +08:00
|
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
|
|
|
|
PROJECT(GuiLite)
|
|
|
|
|
2019-04-08 13:17:46 +08:00
|
|
|
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
|
|
|
|
|
2019-05-24 10:20:40 +08:00
|
|
|
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})
|
2019-04-08 13:17:46 +08:00
|
|
|
|
|
|
|
# core
|
2019-05-24 10:20:40 +08:00
|
|
|
FILE(GLOB CORE_SRC core/*.cpp)
|
|
|
|
FILE(GLOB CORE_ADAPTER core/adapter/api_linux.cpp
|
|
|
|
core/adapter/audio_linux.cpp
|
|
|
|
core/adapter/msg_linux.cpp)
|
2019-04-08 13:17:46 +08:00
|
|
|
# gui
|
2019-05-24 10:20:40 +08:00
|
|
|
FILE(GLOB WIDGETS_SRC widgets/*.cpp)
|
2019-04-08 13:17:46 +08:00
|
|
|
|
|
|
|
# build static library
|
|
|
|
ADD_LIBRARY(GuiLite STATIC ${CORE_SRC} ${CORE_ADAPTER} ${WIDGETS_SRC})
|
|
|
|
|
|
|
|
# build shared library
|
|
|
|
# ADD_LIBRARY(GuiLite SHARED ${CORE_SRC} ${CORE_ADAPTER} ${WIDGETS_SRC})
|
|
|
|
|
|
|
|
execute_process(COMMAND ${CMAKE_SOURCE_DIR}/.sync.sh GuiLite)
|