Changes between Version 11 and Version 12 of code/tools/CMake
- Timestamp:
- Nov 29, 2007, 7:03:05 PM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
code/tools/CMake
v11 v12 1 1 [[TracNav(TracNav/TOC_Coding)]] 2 2 = CMake Build System = 3 4 == Writing CMakeLists.txt == 5 Just as an simple example for how to write a CMakeLists.txt (CMake counterpart to Makefile.am and alike).[[br]] 6 {{{PROJECT(Orxonox) 7 8 SET( SRC_FILES 9 some_soource.cc 10 another_source.cc 11 ) 12 13 INCLUDE_DIRECOTRIES(.) 14 15 ADD_LIBRARY(network ${SRC_FILES})}}}[[br]] 16 3 17 4 18 == Using CMake with KDevelop == … … 19 33 * i.e Name: CXXFLAGS; Value: -O2 -pipe[[br]] 20 34 * CXXFLAGS or LDFLAGS are also possible. In fact any compiler flags can be set here[[br]] 21 ''If you don't know what CFLAGS are, don't set them, otherwise use at you own discretion. Only reasonable f algs will be supported''[[br]][[br]]35 ''If you don't know what CFLAGS are, don't set them, otherwise use at you own discretion. Only reasonable flags will be supported''[[br]][[br]] 22 36 23 37 Go to '''{{{Project->Project Option->Run Option}}}'''