Commit 6fd24134 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum

[CHANGE] - modules now get build to lib/modules

parent c48c67f5
......@@ -42,7 +42,7 @@ boost::shared_ptr< WModuleFactory > WModuleFactory::m_instance = boost::shared_p
WModuleFactory::WModuleFactory():
m_prototypes(),
m_moduleLoader( "modules/" )
m_moduleLoader( "../lib/modules" )
{
// initialize members
}
......
......@@ -50,6 +50,7 @@ void WModuleLoader::load( WSharedAssociativeContainer< std::set< boost::shared_p
for( boost::filesystem::directory_iterator i = boost::filesystem::directory_iterator( m_path );
i != boost::filesystem::directory_iterator(); ++i )
{
// all modules need to begin with this
std::string suffix = wiotools::getSuffix( i->leaf() );
if( !boost::filesystem::is_directory( *i ) && ( suffix == WSharedLib::getSystemSuffix() ) )
{
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION lib/modules ARCHIVE DESTINATION lib/modules )
# Unit tests
IF( OW_COMPILE_TESTS )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin )
CXXTEST_ADD_TESTS_FROM_LIST( "${MODULES_SRC}"
"kernel;${modname}"
)
......
FILE( GLOB_RECURSE MODULES_SRC "*.cpp" "*.h" )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/bin/modules )
SET( CMAKE_LIBRARY_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
SET( CMAKE_RUNTIME_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib/modules )
GET_FILENAME_COMPONENT( modname ${CMAKE_CURRENT_SOURCE_DIR} NAME )
ADD_LIBRARY( ${modname} SHARED ${MODULES_SRC} )
TARGET_LINK_LIBRARIES( ${modname} kernel )
INSTALL( TARGETS ${modname} LIBRARY DESTINATION bin/modules ARCHIVE DESTINATION bin/modules )