Simple software to make a table plan

CMakeLists.txt 1.8KB

    cmake_minimum_required(VERSION 2.8.9) PROJECT(TablePlanner) # CMake configuration #------------------------------------------------------------------------------- if(CMAKE_COMPILER_IS_GNUCXX) add_definitions(-std=gnu++0x) add_definitions(-DCLM_INTEROPERABILITY) add_definitions(-DCLM_VERBOSE) endif() # Qt5 configuration #------------------------------------------------------------------------------- # As moc files are generated in the binary dir, tell CMake # to always look for includes there: SET(CMAKE_INCLUDE_CURRENT_DIR ON) # To run moc when necessary SET(CMAKE_AUTOMOC ON) # We load the desired Qt5 modules FIND_PACKAGE(Qt5Widgets) # Include and library directories #------------------------------------------------------------------------------- INCLUDE_DIRECTORIES( src ) LINK_DIRECTORIES( ) # Definition of the source and headers files for the project #------------------------------------------------------------------------------- SET(TP_HEADERS src/table.h src/tableplanner.h ) SET(TP_SOURCES src/tableplanner.cpp src/table.cpp ) SET(TP_DATA ) # Compilation #------------------------------------------------------------------------------- ADD_EXECUTABLE( TablePlanner ${TP_SOURCES} ${TP_HEADERS} src/main.cpp ) TARGET_LINK_LIBRARIES( TablePlanner ) # Linking with proper Qt5 modules #------------------------------------------------------------------------------- qt5_use_modules(TablePlanner Widgets) # Definition of the files to copy with the executable #------------------------------------------------------------------------------- INSTALL( FILES ${TP_DATA} DESTINATION ${CMAKE_BINARY_DIR}/data ) IF (WIN32) INSTALL(TARGETS ID RUNTIME DESTINATION ${CMAKE_BINARY_DIR}) ENDIF (WIN32)