cmake fixes

This commit is contained in:
Marian Krivos
2011-09-14 18:22:50 +00:00
parent b242f2c8d1
commit 8aa4425690
10 changed files with 17 additions and 9 deletions

View File

@@ -15,5 +15,5 @@ set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} ) add_executable( ${TESTUNIT} ${TEST_SRCS} )
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoMySQL PocoData PocoFoundation CppUnit ) target_link_libraries( ${TESTUNIT} PocoDataMySQL PocoData PocoFoundation CppUnit )

View File

@@ -22,5 +22,5 @@ set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} ) add_executable( ${TESTUNIT} ${TEST_SRCS} )
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoODBC PocoData PocoFoundation CppUnit ) target_link_libraries( ${TESTUNIT} PocoDataODBC PocoData PocoFoundation CppUnit )

View File

@@ -14,5 +14,5 @@ set(TESTUNIT "${LIBNAME}-testrunner")
add_executable( ${TESTUNIT} ${TEST_SRCS} ) add_executable( ${TESTUNIT} ${TEST_SRCS} )
set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${TESTUNIT} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${TESTUNIT} PocoSQLite PocoData PocoFoundation CppUnit ) target_link_libraries( ${TESTUNIT} PocoDataSQLite PocoData PocoFoundation CppUnit )

View File

@@ -13,6 +13,6 @@ objects = SQLiteTestSuite Driver \
target = testrunner target = testrunner
target_version = 1 target_version = 1
target_libs = PocoSQLite PocoData PocoFoundation CppUnit target_libs = PocoDataSQLite PocoData PocoFoundation CppUnit
include $(POCO_BASE)/build/rules/exec include $(POCO_BASE)/build/rules/exec

View File

@@ -5,4 +5,4 @@ aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} ) add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoSQLite PocoData PocoFoundation ) target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )

View File

@@ -5,4 +5,4 @@ aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} ) add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoSQLite PocoData PocoFoundation ) target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )

View File

@@ -5,4 +5,4 @@ aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} ) add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoSQLite PocoData PocoFoundation ) target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )

View File

@@ -5,4 +5,4 @@ aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} ) add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoSQLite PocoData PocoFoundation ) target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )

View File

@@ -5,4 +5,4 @@ aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} ) add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} ) set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoSQLite PocoData PocoFoundation ) target_link_libraries( ${SAMPLE_NAME} PocoDataSQLite PocoData PocoFoundation )

View File

@@ -0,0 +1,8 @@
set(SAMPLE_NAME "pkill")
set(LOCAL_SRCS "")
aux_source_directory(src LOCAL_SRCS)
add_executable( ${SAMPLE_NAME} ${LOCAL_SRCS} )
set_target_properties( ${SAMPLE_NAME} PROPERTIES COMPILE_FLAGS ${RELEASE_CXX_FLAGS} )
target_link_libraries( ${SAMPLE_NAME} PocoUtil PocoXML PocoFoundation )