CMakeLists.txt

changeset 1
4dd5bde4e777
child 5
146825d63b9a
equal deleted inserted replaced
0:792876306489 1:4dd5bde4e777
1 cmake_minimum_required (VERSION 2.4)
2 project (hurgharama)
3
4 set (SOURCE_FILES
5 sources/filesystem.cpp
6 sources/format.cpp
7 sources/main.cpp
8 sources/mystring.cpp
9 sources/version.cpp
10 )
11
12 set (CURSES_NEED_NCURSES, True)
13 set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x -W -Wall")
14 find_package (Curses)
15 include_directories (${CURSES_INCUDE_DIRS})
16 include_directories (${CMAKE_CURRENT_BINARY_DIR})
17 add_executable (${PROJECT_NAME} ${SOURCE_FILES})
18 target_link_libraries (${PROJECT_NAME} ${CURSES_LIBRARIES})
19
20 add_custom_target (make_hginfo_h
21 COMMAND python
22 "${CMAKE_SOURCE_DIR}/updaterevision/updaterevision.py"
23 "${CMAKE_CURRENT_BINARY_DIR}/hginfo.h")
24 add_dependencies (${PROJECT_NAME} make_hginfo_h)

mercurial