mirror of
https://gitee.com/idea4good/GuiLite.git
synced 2026-01-02 04:17:19 +08:00
refactor folder
This commit is contained in:
22
workspace/CMakeLists.txt
Normal file
22
workspace/CMakeLists.txt
Normal file
@@ -0,0 +1,22 @@
|
||||
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)
|
||||
# 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)
|
||||
Reference in New Issue
Block a user