Advertisement
delt01

Untitled

Feb 6th, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
CMake 1.79 KB | None | 0 0
  1. cmake_minimum_required (VERSION 2.6)
  2.  
  3. SET ( CMAKE_CXX_FLAGS           "-fpermissive -Wno-write-strings ${CMAKE_CXX_FLAGS} -v" )
  4. SET ( CMAKE_C_FLAGS             "-Wno-write-strings ${CMAKE_C_FLAGS} -v" )
  5. #SET ( CMAKE_EXE_LINKER_FLAGS    "${CMAKE_EXE_LINKER_FLAGS} -lm -lz -v -stdlib=libstdc++" )
  6. #SET ( CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -lm -lz" )
  7. #SET ( CMAKE_STATIC_LINKER_FLAGS "${CMAKE_STATIC_LINKER_FLAGS} -lm -lz" )
  8.  
  9. SET (wxWidgets_USE_DEBUG OFF)
  10. SET (wxWidgets_USE_UNICODE ON)
  11. SET (wxWidgets_USE_UNIVERSAL ON)
  12. SET (wxWidgets_USE_STATIC ON)
  13.  
  14. project (acu)
  15. add_executable (acu
  16.   cmdline.c
  17.   main.cpp
  18.   widgets.cpp
  19.   ui.cpp
  20.   fileformat.cpp
  21.   md5.cpp
  22.   blowfish.cpp
  23.   memo.cpp
  24.   bodychart.cpp
  25.   misc.cpp
  26.   ../data/data.cpp
  27.   wxwidgets/about_dialog.cpp
  28.   wxwidgets/accounting_dialog.cpp
  29.   wxwidgets/add_extraflag_dialog.cpp
  30.   wxwidgets/advancedsearch.cpp
  31.   wxwidgets/consentement_dialog.cpp
  32.   wxwidgets/csst_dialog.cpp
  33.   wxwidgets/editorwindow.cpp
  34.   wxwidgets/exposition.cpp
  35.   wxwidgets/iconselector.cpp
  36.   wxwidgets/keygen.cpp
  37.   wxwidgets/license_dialog.cpp
  38.   wxwidgets/mainwindow.cpp
  39.   wxwidgets/needleedit_dialog.cpp
  40.   wxwidgets/newfile_dialog.cpp
  41.   wxwidgets/newmemo.cpp
  42.   wxwidgets/newuser.cpp
  43.   wxwidgets/noteedit.cpp
  44.   wxwidgets/openfile.cpp
  45.   wxwidgets/password.cpp
  46.   wxwidgets/pointedit.cpp
  47.   wxwidgets/prefs.cpp
  48.   wxwidgets/progress_dialog.cpp
  49.   wxwidgets/test.cpp
  50.   wxwidgets/testpanel.cpp
  51.   wxwidgets/unlockfile.cpp
  52. )
  53.  
  54. # Note that for MinGW users the order of libs is important!
  55. find_package (wxWidgets
  56.   COMPONENTS net adv core base
  57.   REQUIRED
  58. )
  59. include (${wxWidgets_USE_FILE})
  60. # and for each of your dependent executable/library targets:
  61. target_link_libraries (acu PUBLIC ${wxWidgets_LIBRARIES} PUBLIC -lm PUBLIC -lz PUBLIC -lpthread)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement