Use cmake properly, basically complete cmake build system rewrite.

Signed-off-by: Tomáš Chvátal <scarabeus@gentoo.org>
This commit is contained in:
Tomáš Chvátal
2010-08-21 13:28:15 +02:00
committed by Martin Duquesnoy
parent e254f76211
commit 9055a55d58
6 changed files with 209 additions and 255 deletions

34
src/CMakeLists.txt Normal file
View File

@@ -0,0 +1,34 @@
# -*- mode: cmake -*-
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/parse)
SET(WMFS_SOURCES
parse/parse.c
barwin.c
client.c
config.c
draw.c
event.c
ewmh.c
frame.c
getinfo.c
infobar.c
init.c
launcher.c
layout.c
menu.c
mouse.c
screen.c
status.c
systray.c
tag.c
util.c
viwmfs.c
wmfs.c
)
add_executable(${PROJECT_NAME} ${WMFS_SOURCES})
target_link_libraries(${PROJECT_NAME} ${CMAKE_LINK_LIBRARIES})
INSTALL ( TARGETS ${PROJECT_NAME}
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib${LIB_SUFFIX} )

View File

@@ -35,16 +35,11 @@
#include "wmfs.h"
#define WMFS_VERSION "@WMFS_VERSION@"
#define WMFS_COMPILE_MACHINE "@WMFS_COMPILE_MACHINE@"
#define WMFS_COMPILE_BY "@WMFS_COMPILE_BY@"
#define WMFS_COMPILE_FLAGS "@WMFS_COMPILE_FLAGS@"
#define WMFS_LINKED_LIBS "@WMFS_LINKED_LIBS@"
#define XDG_CONFIG_DIR "@XDG_CONFIG_DIR@"
/* Optional dependencies */
@WMFS_HAVE_XINERAMA@
@WMFS_HAVE_XRANDR@
@WMFS_HAVE_IMLIB@
#define WMFS_VERSION "@VERSION@"
#define WMFS_COMPILE_MACHINE "@CMAKE_SYSTEM_PROCESSOR@"
#define WMFS_COMPILE_BY "@ENV{USER}@"
#define WMFS_COMPILE_FLAGS "@CMAKE_C_FLAGS@"
#define WMFS_LINKED_LIBS "@CMAKE_LINK_LIBRARIES@"
#define XDG_CONFIG_DIR "@CMAKE_XDGCONFDIR@"
#endif /* CONFIG_H */