You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

37 lines
1.2 KiB

CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/config.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h)
#INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR})
FILE(GLOB bibellese_HEADERS *.h)
SET(bibellese_WIDGET_HEADERS mainwindow.h settingsdialog.h licensedialog.h)
FILE(GLOB bibellese_SOURCES *.cpp)
SET(bibellese_FORMS mainwindow.ui settingsdialog.ui licensedialog.ui)
ADD_DEFINITIONS(${QT_DEFINITIONS})
SET(CMAKE_AUTOMOC ON)
SET(CMAKE_INCLUDE_CURRENT_DIR ON)
QT5_WRAP_UI(bibellese_FORMS_HEADERS ${bibellese_FORMS})
IF(WIN32)
SET(LIBICAL_LIBRARIES "-LC:/libical/lib -lical -licalss -licalvcal")
SET(LIBICAL_INCLUDE_DIRS "C:/libical/include")
ENDIF(WIN32)
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}
${Boost_INCLUDE_DIRS}
${LIBICAL_INCLUDE_DIRS})
ADD_EXECUTABLE(bibellese ${bibellese_SOURCES} ${bibellese_FORMS_HEADERS})
IF (WIN32)
SET_TARGET_PROPERTIES(bibellese PROPERTIES LINK_FLAGS "-mwindows")
ENDIF (WIN32)
TARGET_LINK_LIBRARIES(bibellese ${LIBICAL_LIBRARIES} Qt5::Widgets
${Boost_DATE_TIME_LIBRARY} ${Boost_FILESYSTEM_LIBRARY} ${Boost_SYSTEM_LIBRARY})
IF (UNIX)
INSTALL(TARGETS bibellese RUNTIME DESTINATION bin)
ENDIF (UNIX)
IF (WIN32)
INSTALL(TARGETS bibellese RUNTIME DESTINATION bin)
ENDIF (WIN32)