Fixed some mistakes within the CMakeLists.txt

Made latest revision compatible to windows again

git-svn-id: svn://svn.code.sf.net/p/libkqueue/code/trunk@500 fb4e3144-bc1c-4b72-a658-5bcd248dd7f7
This commit is contained in:
marius 2011-05-04 17:39:25 +00:00
parent bc9c93a130
commit 699bb19e76
3 changed files with 4 additions and 9 deletions

View File

@ -17,13 +17,6 @@
cmake_minimum_required(VERSION 2.8) cmake_minimum_required(VERSION 2.8)
INCLUDE (CheckIncludeFiles) INCLUDE (CheckIncludeFiles)
#tests
option(KQUEUE_TESTS "Enable to build tests for libkqueue" OFF)
if(KQUEUE_TESTS)
message("-- Adding tests for libkqueue")
add_subdirectory(test)
endif()
project(kqueue) project(kqueue)
#files #files

View File

@ -19,7 +19,9 @@
#include <assert.h> #include <assert.h>
#include <stdio.h> #include <stdio.h>
#include <unistd.h> #ifndef _WIN32
# include <unistd.h>
#endif
extern int DEBUG_ACTIVE; extern int DEBUG_ACTIVE;
extern char *DEBUG_IDENT; extern char *DEBUG_IDENT;

View File

@ -56,5 +56,5 @@ else()
endif() endif()
add_executable(libkqueue-test ${SRC}) add_executable(libkqueue-test ${SRC})
target_link_libraries(libkqueue-test libkqueue ${LIBS}) target_link_libraries(libkqueue-test kqueue ${LIBS})
set_target_properties(libkqueue-test PROPERTIES DEBUG_POSTFIX "D") set_target_properties(libkqueue-test PROPERTIES DEBUG_POSTFIX "D")