cleaning of CMakeLists.txt
This commit is contained in:
parent
bf2336f2b4
commit
34db054bf7
@ -41,7 +41,7 @@ OPTION (USE_PROFILER "Include in binary file profiling information" OFF)
|
||||
|
||||
|
||||
IF(${USE_DEBUGGER})
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -g -Wall")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_DEBUG} -Wall")
|
||||
ELSE()
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS_RELEASE} -Wall")
|
||||
ENDIF()
|
||||
@ -76,14 +76,10 @@ SET(QtApp_RCCS "${CMAKE_CURRENT_SOURCE_DIR}/ponyprog.qrc")
|
||||
SET(CURRENT_BUILD_DIR ${CMAKE_CURRENT_BINARY_DIR})
|
||||
|
||||
|
||||
|
||||
# IF(NOT ${LIBUSB_VERSION} LESS "1.0.16")
|
||||
# MESSAGE(STATUS "LibUSB version ${LIBUSB_VERSION}")
|
||||
# ELSE()
|
||||
# MESSAGE(FATAL_ERROR "-- LibUSB version ${LIBUSB_VERSION} TOO OLD! Please Install this library newer as 1.0.16")
|
||||
# ENDIF()
|
||||
|
||||
# Set the PonyProg version
|
||||
# this for generating of version file from README file
|
||||
# the idea is to descript all changes in this file, the ne changes are in the top of file
|
||||
# see the patched README file in this commit
|
||||
#cat README | grep -E '^[0-9]+\.[0-9]+\.[0-9]+' | head -n 1
|
||||
EXECUTE_PROCESS (
|
||||
COMMAND cat README
|
||||
@ -132,7 +128,6 @@ SET(PONYPROG_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX})
|
||||
# ENDIF(MSVC)
|
||||
|
||||
|
||||
# SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lusb-1.0")
|
||||
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
|
||||
|
||||
# options for gprof
|
||||
@ -174,7 +169,6 @@ ENDIF()
|
||||
IF(${USE_QT_VERSION} MATCHES "4")
|
||||
INCLUDE_DIRECTORIES(${QT_INCLUDES})
|
||||
MESSAGE(STATUS "QT_INCLUDES ${QT_INCLUDES}")
|
||||
# ADD_DEFINITIONS(-DGL_IMPLEMENTATION_GL)
|
||||
# LINK_DIRECTORIES(${QT_LIBRARY_DIR})
|
||||
ELSE()
|
||||
INCLUDE_DIRECTORIES(${QT_INCLUDES} ${Qt5Widgets_INCLUDE_DIRS} ${Qt5PrintSupport_INCLUDE_DIRS})
|
||||
@ -247,10 +241,7 @@ IF(${USE_QT_VERSION} MATCHES "4")
|
||||
TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} ${QT_LIBRARIES} )
|
||||
ELSE()
|
||||
TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} ${QT_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5PrintSupport_LIBRARIES} )
|
||||
MESSAGE(STATUS "QT LIBRARIES: ${QT_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5PrintSupport_LIBRARIES} ${Qt5Core_LIBRARIES}")
|
||||
# ELSE()
|
||||
# TARGET_LINK_LIBRARIES(${CMAKE_PROJECT_NAME} ${Qt5Widgets_LIBRARIES} )
|
||||
# ENDIF()
|
||||
MESSAGE(STATUS "QT LIBRARIES: ${QT_LIBRARIES} ${Qt5Widgets_LIBRARIES} ${Qt5PrintSupport_LIBRARIES} ${Qt5Core_LIBRARIES}")
|
||||
ENDIF()
|
||||
|
||||
ADD_CUSTOM_TARGET (tags
|
||||
@ -294,10 +285,6 @@ MARK_AS_ADVANCED(PONYPROG_ENABLE_SYMBOL_VISIBILITY)
|
||||
# CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/CTestCustom.cmake.in ${CMAKE_CURRENT_BINARY_DIR}/CTestCustom.cmake @ONLY)
|
||||
# ENDIF(PONYPROG_ENABLE_TESTING)
|
||||
|
||||
# Find required external packages
|
||||
#PONYPROG_CHECK_REQUIRED_DEPENDENCY(PONYPROG_HTTRACK_FOUND "libhttrack2" "http://www.httrack.com" "")
|
||||
# PONYPROG_CHECK_OPTIONAL_DEPENDENCY(PONYPROG_BUILD_3DS_IO_MODULE PONYPROG_3DS_FOUND "lib3ds")
|
||||
|
||||
# Capture system configuration
|
||||
INCLUDE(SystemConfiguration)
|
||||
|
||||
|
7
README
7
README
@ -5,3 +5,10 @@ PonyProg is the universal programmer for many serial devices.
|
||||
If you want to know more about PonyProg look at my site
|
||||
|
||||
http://www.LancOS.com
|
||||
|
||||
|
||||
For connection with hardware please copy the file udev/rules.d/z90_cncusb.rules into /etc/udev/rules.d/ directory and restart the udev daemon.
|
||||
|
||||
Version history
|
||||
|
||||
3.0.0 Project converted to Qt framework
|
||||
|
Loading…
x
Reference in New Issue
Block a user