uiLitejhksdhkfj/CMakeLists.txt

24 lines
650 B
CMake
Raw Normal View History

cmake_minimum_required(VERSION 2.8)
PROJECT(GuiLite)
SET(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
2019-05-24 10:20:40 +08:00
INCLUDE_DIRECTORIES(${PROJECT_SOURCE_DIR})
# 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)
# gui
2019-05-24 10:20:40 +08:00
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)