CMakeLists.txt 611 Bytes
Newer Older
Pierre Aubert's avatar
Pierre Aubert committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
project(pclocktimer)
cmake_minimum_required(VERSION 2.8)

find_package(Qt5Widgets REQUIRED)

include_directories(${QT_INCLUDES} ${CMAKE_CURRENT_BINARY_DIR})

message(STATUS "QT_INCLUDES = ${QT_INCLUDES}")

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}")
# SET(CMAKE_CXX_FLAGS "-fPIC")

set(CMAKE_INCLUDE_CURRENT_DIR ON)
SET(CMAKE_AUTOMOC ON)

set(PClockTimer_SRCS PClockTimer.cpp main.cpp)
add_executable(pclocktimer ${PClockTimer_SRCS})
target_link_libraries(pclocktimer ${Qt5Widgets_LIBRARIES})

install(TARGETS pclocktimer RUNTIME DESTINATION bin)

Pierre Aubert's avatar
Pierre Aubert committed
22 23 24

add_subdirectory(share)