This commit is contained in:
arcan1s 2014-01-30 16:34:59 +04:00
parent ac849afeee
commit feab0239a6
3 changed files with 18 additions and 9 deletions

View File

@ -12,11 +12,12 @@ set (PROJECT_VERSION_PATCH 0)
set (PROJECT_VERSION ${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH})
configure_file (${CMAKE_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
message (STATUS "Version ${PROJECT_VERSION}")
message (STATUS "Version: ${PROJECT_VERSION}")
# install options
option (WITH_DEBUG_MODE "Build with debug mode" OFF)
option (BUILD_GUI "Build GUI" ON)
option (BUILD_DATAENGINE "Build data engine" ON)
option (BUILD_PLASMOID "Build plasmoid" ON)
# verbose
@ -32,12 +33,19 @@ if (CMAKE_COMPILER_IS_GNUCXX)
set (CMAKE_CXX_FLAGS_DEBUG "-g -O0")
set (CMAKE_CXX_FLAGS_RELEASE "-O3 -DNDEBUG")
else ()
message ("Unknown compiler")
message (STATUS "Unknown compiler")
endif ()
if (BUILD_PLASMOID)
set (BUILD_DATAENGINE ON)
endif ()
if (BUILD_GUI)
add_subdirectory (netctl-gui)
endif ()
if (BUILD_DATAENGINE)
add_subdirectory (netctl-dataengine)
endif ()
if (BUILD_PLASMOID)
add_subdirectory (netctl-dataengine)
add_subdirectory (netctl-monitor)

View File

@ -11,3 +11,7 @@ set (TARGETS "")
set (HEADERS "")
add_subdirectory (${SUBPROJECT_SOURCE_DIR})
install (FILES ${SUBPROJECT}.desktop DESTINATION share/applications/)
install (FILES ${SUBPROJECT}-logo.png DESTINATION share/pixmaps/)
install (FILES ${SUBPROJECT}.png DESTINATION share/icons/hicolor/32x32/apps/)

View File

@ -3,9 +3,9 @@ file (GLOB SOURCES *.cpp)
file (GLOB HEADERS *.h)
file (GLOB FORMS *.ui)
message (STATUS "${SUBPROJECT} SOURCES: ${SOURCES}")
message (STATUS "${SUBPROJECT} HEADERS: ${HEADERS}")
message (STATUS "${SUBPROJECT} FORMS: ${FORMS}")
message (STATUS "${SUBPROJECT} Sources: ${SOURCES}")
message (STATUS "${SUBPROJECT} Headers: ${HEADERS}")
message (STATUS "${SUBPROJECT} Forms: ${FORMS}")
# include_path
include_directories (${SUBPROJECT_SOURCE_DIR}
@ -26,6 +26,3 @@ target_link_libraries (${SUBPROJECT} ${QT_LIBRARIES} ${QT_QTMAIN_LIBRARY})
# install properties
install (TARGETS ${SUBPROJECT} DESTINATION bin)
install (FILES ../${SUBPROJECT}.desktop DESTINATION share/applications/)
install (FILES ../${SUBPROJECT}-logo.png DESTINATION share/pixmaps/)
install (FILES ../${SUBPROJECT}.png DESTINATION share/icons/hicolor/32x32/apps/)