src/CMakeLists.txt
author Tero Marttila <terom@fixme.fi>
Sun, 08 Mar 2009 01:16:54 +0200
changeset 57 527d23bf6441
child 58 02e539965ef4
permissions -rw-r--r--
move to CMake from old crufty Makefile
57
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     1
# add our include path
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     2
include_directories (${evsql_SOURCE_DIR}/include ${LibEvent_INCLUDE_DIRS})
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     3
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     4
# define our source code modules
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     5
set (LIB_SOURCES "lib/log.c")
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     6
set (EVPQ_SOURCES evpq.c)
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     7
set (EVSQL_SOURCES core.c util.c)
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     8
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
     9
# XXX: silly cmake does silly things when you SET with only one arg
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    10
set (SOURCES lib/log.c evpq.c core.c util.c)
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    11
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    12
# add our library
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    13
add_library (evsql STATIC ${SOURCES})
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    14
target_link_libraries (evsql ${LibEvent_LIBRARIES})
527d23bf6441 move to CMake from old crufty Makefile
Tero Marttila <terom@fixme.fi>
parents:
diff changeset
    15