1
0
mirror of https://github.com/rene-dev/stmbl.git synced 2024-12-19 07:02:13 +00:00
stmbl/term/CMakeLists.txt

48 lines
1.5 KiB
CMake
Raw Permalink Normal View History

2014-08-19 21:40:31 +00:00
project(Servoterm)
cmake_minimum_required(VERSION 2.8)
2014-09-17 15:02:49 +00:00
include(FindPkgConfig)
list(APPEND PKGDEPS libserialport)
#find_package(PkgConfig)
pkg_check_modules(PKGDEPS REQUIRED ${PKGDEPS})
include_directories(${PKGDEPS_STATIC_INCLUDE_DIRS})
link_directories(${PKGDEPS_STATIC_LIBRARY_DIRS})
list(APPEND SERVOTERM_LINK_LIBS ${PKGDEPS_STATIC_LIBRARIES})
2014-08-19 21:40:31 +00:00
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules/")
add_definitions("-std=c++11")
add_definitions("-DSRCDIR=\"${PROJECT_SOURCE_DIR}\"")
add_definitions("-D__WXDEBUG__")
2014-09-17 15:02:49 +00:00
###find_package(libserialport REQUIRED)
2014-08-19 21:40:31 +00:00
set(SRC_LIST
main.cpp
mainframe.cpp mainframe.hpp
2014-09-21 00:32:12 +00:00
basicdrawpane.cpp basicdrawpane.hpp
2015-01-04 01:34:04 +00:00
dqframe.cpp dqframe.hpp
dqdraw.cpp dqdraw.hpp
2014-08-19 21:40:31 +00:00
)
set(wxWidgets_CONFIGURATION mswu)
2014-08-20 16:04:13 +00:00
find_package(wxWidgets 3.0 COMPONENTS core base REQUIRED)
2014-08-19 21:40:31 +00:00
include(${wxWidgets_USE_FILE})
if(APPLE)
2015-12-01 19:46:59 +00:00
#set(MACOSX_BUNDLE_ICON_FILE "stmbl.icns" )
2015-11-12 06:56:58 +00:00
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/resources/stmbl.icns PROPERTIES MACOSX_PACKAGE_LOCATION "Resources")
add_executable(${PROJECT_NAME} MACOSX_BUNDLE ${SRC_LIST} ${CMAKE_CURRENT_SOURCE_DIR}/resources/stmbl.icns)
2014-08-19 21:40:31 +00:00
else(APPLE)
add_executable(${PROJECT_NAME} ${SRC_LIST})
endif(APPLE)
2014-08-20 16:04:13 +00:00
MESSAGE(STATUS "wxWidgets_LIBRARIES = ${wxWidgets_LIBRARIES}")
2014-09-17 15:02:49 +00:00
list(APPEND SERVOTERM_LINK_LIBS ${wxWidgets_LIBRARIES})
target_link_libraries(${PROJECT_NAME} ${SERVOTERM_LINK_LIBS})
install(TARGETS ${PROJECT_NAME} DESTINATION bin/)
#target_link_libraries(${PROJECT_NAME} ${wxWidgets_LIBRARIES})
#target_link_libraries(${PROJECT_NAME} ${LIBSERIALPORT_LIBRARIES})