parent
eaad965ca8
commit
fbfc28021c
@ -0,0 +1,75 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2011 Timothy Pearson
|
||||||
|
# kb9vqf (AT) pearsoncomputing.net
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
cmake_minimum_required( VERSION 2.8 )
|
||||||
|
|
||||||
|
|
||||||
|
##### general package setup #####################
|
||||||
|
|
||||||
|
project( wlassistant )
|
||||||
|
|
||||||
|
|
||||||
|
##### include essential cmake modules ###########
|
||||||
|
|
||||||
|
include( CheckCXXSourceCompiles )
|
||||||
|
include( CheckFunctionExists )
|
||||||
|
include( CheckIncludeFileCXX )
|
||||||
|
include( CheckLibraryExists )
|
||||||
|
include( CheckStructHasMember )
|
||||||
|
include( CheckSymbolExists )
|
||||||
|
include( CheckTypeSize )
|
||||||
|
include( FindPkgConfig )
|
||||||
|
|
||||||
|
|
||||||
|
##### include our cmake modules #################
|
||||||
|
|
||||||
|
set( CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/modules" )
|
||||||
|
include( TDEMacros )
|
||||||
|
|
||||||
|
|
||||||
|
##### setup install paths #######################
|
||||||
|
|
||||||
|
include( TDESetupPaths )
|
||||||
|
tde_setup_paths( )
|
||||||
|
|
||||||
|
|
||||||
|
##### user requested modules ####################
|
||||||
|
|
||||||
|
option( BUILD_ALL "Build all" OFF )
|
||||||
|
option( BUILD_TRANSLATIONS "Build translations" ${BUILD_ALL} )
|
||||||
|
|
||||||
|
|
||||||
|
##### configure checks ##########################
|
||||||
|
|
||||||
|
include( ConfigureChecks.cmake )
|
||||||
|
|
||||||
|
|
||||||
|
###### global compiler settings #################
|
||||||
|
|
||||||
|
add_definitions(
|
||||||
|
-DHAVE_CONFIG_H
|
||||||
|
)
|
||||||
|
|
||||||
|
set( CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${TQT_CXX_FLAGS}" )
|
||||||
|
set( CMAKE_SHARED_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||||
|
set( CMAKE_MODULE_LINKER_FLAGS "-Wl,--no-undefined" )
|
||||||
|
|
||||||
|
|
||||||
|
##### source directories ########################
|
||||||
|
|
||||||
|
add_subdirectory( src )
|
||||||
|
add_subdirectory( icons )
|
||||||
|
tde_conditional_add_subdirectory( BUILD_TRANSLATIONS po )
|
||||||
|
|
||||||
|
|
||||||
|
##### write configure files #####################
|
||||||
|
|
||||||
|
configure_file( config.h.cmake config.h @ONLY )
|
@ -0,0 +1,30 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2011 Timothy Pearson
|
||||||
|
# kb9vqf (AT) pearsoncomputing.net
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
if( BUILD_TRANSLATIONS AND NOT DEFINED MSGFMT_EXECUTABLE )
|
||||||
|
find_program( MSGFMT_EXECUTABLE msgfmt )
|
||||||
|
if( NOT MSGFMT_EXECUTABLE )
|
||||||
|
tde_message_fatal( "msgfmt program is required, but was not found on your system" )
|
||||||
|
endif( )
|
||||||
|
endif( )
|
||||||
|
|
||||||
|
check_type_size( "int" SIZEOF_INT BUILTIN_TYPES_ONLY )
|
||||||
|
check_type_size( "long" SIZEOF_LONG BUILTIN_TYPES_ONLY )
|
||||||
|
|
||||||
|
check_include_file( stdint.h HAVE_STDINT_H )
|
||||||
|
check_include_file( systems.h HAVE_SYSTEMS_H )
|
||||||
|
check_include_file( linux/inotify.h HAVE_INOTIFY )
|
||||||
|
|
||||||
|
check_function_exists( statvfs HAVE_STATVFS )
|
||||||
|
|
||||||
|
# common required stuff
|
||||||
|
find_package( TQt )
|
||||||
|
find_package( TDE )
|
@ -0,0 +1,5 @@
|
|||||||
|
#cmakedefine SIZEOF_INT @SIZEOF_INT@
|
||||||
|
#cmakedefine SIZEOF_LONG @SIZEOF_LONG@
|
||||||
|
#cmakedefine HAVE_STDINT_H 1
|
||||||
|
#cmakedefine HAVE_SYSTEMS_H 1
|
||||||
|
#cmakedefine HAVE_STATVFS 1
|
@ -0,0 +1,12 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2011 Timothy Pearson
|
||||||
|
# kb9vqf (AT) pearsoncomputing.net
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
tde_install_icons( )
|
@ -0,0 +1,17 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2011 Timothy Pearson
|
||||||
|
# kb9vqf (AT) pearsoncomputing.net
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
file( GLOB_RECURSE po_files RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} wlassistant.po )
|
||||||
|
|
||||||
|
foreach( _po ${po_files} )
|
||||||
|
get_filename_component( _lang ${_po} PATH )
|
||||||
|
tde_create_translation( FILES ${_po} LANG ${_lang} )
|
||||||
|
endforeach( )
|
@ -0,0 +1,39 @@
|
|||||||
|
#################################################
|
||||||
|
#
|
||||||
|
# (C) 2011 Timothy Pearson
|
||||||
|
# kb9vqf (AT) pearsoncomputing.net
|
||||||
|
#
|
||||||
|
# Improvements and feedback are welcome
|
||||||
|
#
|
||||||
|
# This file is released under GPL >= 2
|
||||||
|
#
|
||||||
|
#################################################
|
||||||
|
|
||||||
|
include_directories(
|
||||||
|
${TQT_INCLUDE_DIRS}
|
||||||
|
${TDE_INCLUDE_DIR}
|
||||||
|
${CMAKE_BINARY_DIR}
|
||||||
|
${CMAKE_BINARY_DIR}/src
|
||||||
|
${CMAKE_SOURCE_DIR}/src
|
||||||
|
)
|
||||||
|
|
||||||
|
link_directories(
|
||||||
|
${TQT_LIBRARY_DIRS}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
##### other data ################################
|
||||||
|
|
||||||
|
install( FILES wlassistant.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
|
||||||
|
|
||||||
|
|
||||||
|
##### wlassistant(executable) ###################
|
||||||
|
|
||||||
|
tde_add_executable( wlassistant
|
||||||
|
SOURCES main.cpp netlistviewitem.cpp
|
||||||
|
ui_NetParamsEdit.ui ui_netparamsedit.cpp
|
||||||
|
ui_NetParamsWizard.ui ui_netparamswizard.cpp
|
||||||
|
ui_main.ui waconfig.cpp watools.cpp wlassistant.cpp
|
||||||
|
LINK tdecore-shared tdeui-shared iw-shared
|
||||||
|
DESTINATION ${BIN_INSTALL_DIR}
|
||||||
|
)
|
Loading…
Reference in new issue