24 lines
650 B
CMake
24 lines
650 B
CMake
cmake_minimum_required(VERSION 2.8)
|
|
|
|
PROJECT(GuiLite)
|
|
|
|
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
|
|
|
|
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})
|
|
|
|
# core
|
|
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)
|
|
# gui
|
|
FILE(GLOB WIDGETS_SRC widgets/*.cpp)
|
|
|
|
# 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)
|