Advertisement
wheeler

CMake with wxWidgets v2

Aug 27th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.09 KB | None | 0 0
  1. cmake_minimum_required(VERSION 3.0.0 FATAL_ERROR)
  2. project(TMD)
  3.  
  4. set(CMAKE_CXX_COMPILER g++-4.7)
  5. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  6. set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DDEBUG -g -Wall")
  7. set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGES_RELEASE} -DRELEASE")
  8.  
  9. find_package(wxWidgets COMPONENTS core base REQUIRED)
  10. include("${wxWidgets_USE_FILE}")
  11. FIND_PACKAGE(Boost 1.49 COMPONENTS system REQUIRED)
  12.  
  13. include_directories(
  14.     "${Boost_INCLUDE_DIR}"
  15.     "${PROJECT_SOURCE_DIR}/headers"
  16.     "/home/kacper/programowanie/CPP/Tamandua/headers"
  17. )
  18.  
  19. link_directories(
  20.     "/home/kacper/programowanie/CPP/Tamandua/lib/Debug"
  21. )
  22. add_library(tmd_app STATIC
  23.     headers/debug_gui.hpp
  24.     headers/gui_client.hpp
  25.     headers/main_frame.hpp
  26.     headers/tamandua_textctrl.hpp
  27.     headers/tamandua_box.hpp
  28.     src/debug_gui.cpp
  29.     src/gui_client.cpp
  30.     src/main_frame.cpp
  31.     src/tamandua_textctrl.cpp
  32. )
  33. add_executable(TMD main.cpp)
  34. target_link_libraries(TMD "${wxWidgets_LIBRARIES}")
  35. target_link_libraries(TMD "${Boost_LIBRARIES}")
  36. target_link_libraries(TMD tmd_app)
  37. target_link_libraries(TMD tamandua)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement