Permalink
Browse files

Added stub cmake configurations and added wtracer as a sub-project in…

… wsim's top-level cmake configuration

Added cmake configurations to build wtracer's documentation:
info format: make wtracer-doc
html format: make wtracer-html

TODO: Add wtracer as a seperate target from ALL



git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/wsim@604 c0ef0dea-404d-0410-ad65-84cceb5f200a
  • Loading branch information...
1 parent ef08cb9 commit ca112547a6a85713a05d718b5756bf853471575d nassimian committed May 29, 2011
View
15 CMakeLists.txt
@@ -4,7 +4,7 @@
# See accompanying files LICENCE and AUTHORS for more details.
# Top-Level CMakeLists
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/")
PROJECT(WSIM)
@@ -35,9 +35,19 @@ INCLUDE_DIRECTORIES(
ADD_SUBDIRECTORY(doc)
ADD_SUBDIRECTORY(liblogger)
ADD_SUBDIRECTORY(libetrace)
+ADD_SUBDIRECTORY(libselect)
+ADD_SUBDIRECTORY(libconsole)
+ADD_SUBDIRECTORY(libgdb)
+ADD_SUBDIRECTORY(libelf)
+ADD_SUBDIRECTORY(liblogpkt)
+ADD_SUBDIRECTORY(machine)
# ADD_SUBDIRECTORY(lib)
# ADD_SUBDIRECTORY(src)
+# TODO: Add as a seperate target from ALL
+# Worldsens targets configuration
+ADD_SUBDIRECTORY(utils/wtracer)
+
# Installation configuration
## boilderplate files
@@ -49,6 +59,9 @@ INSTALL(FILES ${DOC_FILES}
# CPack configuration
SET(CPACK_PACKAGE_NAME "wsim")
+SET(CPACK_RESOURCE_FILE_LICENSE ${WSIM_SOURCE_DIR}/LICENSE)
+SET(CPACK_RESOURCE_FILE_README ${WSIM_SOURCE_DIR}/README)
+
## Setting package description
SET(
CPACK_PACKAGE_DESCRIPTION
View
24 libelf/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Copyright (C) 2005-2011 Antoine Fraboulet (http://wsim.gforge.inria.fr/)
+#
+# Use, modification and distribution is subject to WSIM's licensing terms
+# See accompanying files LICENCE and AUTHORS for more details.
+
+# libelf CMakeLists.txt
+
+
+FILE(
+ GLOB
+ source_files
+ *.c
+)
+
+FILE(
+ GLOB
+ header_files
+ *.h
+)
+
+ADD_LIBRARY(elf STATIC ${source_files} ${header_files})
+
+# Install the library when install target is called
+# WSIM_INSTALL_TARGETS(logger)
View
2 libetrace/CMakeLists.txt
@@ -3,7 +3,7 @@
# Use, modification and distribution is subject to WSIM's licensing terms
# See accompanying files LICENCE and AUTHORS for more details.
-# liblogger CMakeLists.txt
+# libetrace CMakeLists.txt
FILE(
View
24 libgdb/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Copyright (C) 2005-2011 Antoine Fraboulet (http://wsim.gforge.inria.fr/)
+#
+# Use, modification and distribution is subject to WSIM's licensing terms
+# See accompanying files LICENCE and AUTHORS for more details.
+
+# libgdb CMakeLists.txt
+
+
+FILE(
+ GLOB
+ source_files
+ *.c
+)
+
+FILE(
+ GLOB
+ header_files
+ *.h
+)
+
+ADD_LIBRARY(gdb STATIC ${source_files} ${header_files})
+
+# Install the library when install target is called
+# WSIM_INSTALL_TARGETS(logger)
View
24 liblogpkt/CMakeLists.txt
@@ -0,0 +1,24 @@
+# Copyright (C) 2005-2011 Antoine Fraboulet (http://wsim.gforge.inria.fr/)
+#
+# Use, modification and distribution is subject to WSIM's licensing terms
+# See accompanying files LICENCE and AUTHORS for more details.
+
+# liblogpkt CMakeLists.txt
+
+
+FILE(
+ GLOB
+ source_files
+ *.c
+)
+
+FILE(
+ GLOB
+ header_files
+ *.h
+)
+
+ADD_LIBRARY(logpkt STATIC ${source_files} ${header_files})
+
+# Install the library when install target is called
+# WSIM_INSTALL_TARGETS(logger)
View
23 machine/CMakeLists.txt
@@ -0,0 +1,23 @@
+# Copyright (C) 2005-2011 Antoine Fraboulet (http://wsim.gforge.inria.fr/)
+#
+# Use, modification and distribution is subject to WSIM's licensing terms
+# See accompanying files LICENCE and AUTHORS for more details.
+
+# machine CMakeLists.txt
+
+FILE(
+ GLOB
+ source_files
+ *.c
+)
+
+FILE(
+ GLOB
+ header_files
+ *.h
+)
+
+ADD_LIBRARY(machine STATIC ${source_files} ${header_files})
+
+# Install the library when install target is called
+# WSIM_INSTALL_TARGETS(logger)
View
40 utils/wtracer/CMakeLists.txt
@@ -1,28 +1,36 @@
-cmake_minimum_required(VERSION 2.8)
+# Copyright (C) 2005-2011 Antoine Fraboulet (http://wsim.gforge.inria.fr/)
+#
+# Use, modification and distribution is subject to WSIM's licensing terms
+# See accompanying files LICENCE and AUTHORS for more details.
-project(wtracer)
+# Top-Level CMakeLists.txt
+CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
+PROJECT(wtracer)
-set(WSIM "../..")
-set(WTRACER "${WSIM}/utils/wtracer")
+# SET(WSIM "../..")
+# SET(WTRACER "${WSIM}/utils/wtracer")
-include_directories(${WTRACER})
-include_directories(${WTRACER}/src)
-include_directories(${CMAKE_CURRENT_BINARY_DIR})
+INCLUDE_DIRECTORIES(
+ ${WTRACER_SOURCE_DIR}
+ ${WTRACER_SOURCE_DIR}/src
+ ${CMAKE_CURRENT_BINARY_DIR}
+)
-add_executable(wtracer.elf \\
- ${WTRACER}/src/main \\
- ${WTRACER}/src/drv_vcd \\
- ${WTRACER}/src/drv_gplot \\
- ${WTRACER}/src/drv_raw \\
- ${WTRACER}/src/drv_sitc \\
- ${WTRACER}/src/endian \\
- ${WTRACER}/src/log \\
- ${WTRACER}/src/tracer
+ADD_EXECUTABLE(wtracer.elf \\
+ src/main \\
+ src/drv_vcd \\
+ src/drv_gplot \\
+ src/drv_raw \\
+ src/drv_sitc \\
+ src/endian \\
+ src/log \\
+ src/tracer
)
+ADD_SUBDIRECTORY(doc)
INCLUDE (CheckIncludeFiles)
CHECK_INCLUDE_FILES(strings.h HAVE_STRINGS_H)
View
40 utils/wtracer/doc/CMakeLists.txt
@@ -0,0 +1,40 @@
+# Copyright (C) 2005-2011 Antoine Fraboulet (http://wsim.gforge.inria.fr/)
+#
+# Use, modification and distribution is subject to WSIM's licensing terms
+# See accompanying files LICENCE and AUTHORS for more details.
+
+# doc CMakeLists.txt
+
+FIND_PROGRAM(MAKEINFO_EXEC makeinfo)
+
+IF (MAKEINFO_EXEC)
+ SET(fig_in ${CMAKE_CURRENT_SOURCE_DIR}/fig)
+ SET(fig_out ${CMAKE_CURRENT_BINARY_DIR}/wtracer/fig)
+ SET(info_in ${CMAKE_CURRENT_SOURCE_DIR}/wtracer.texi)
+ SET(info_out ${CMAKE_CURRENT_BINARY_DIR}/wtracer.info)
+ SET(info_html ${CMAKE_CURRENT_BINARY_DIR}/index.html)
+
+ ADD_CUSTOM_COMMAND(OUTPUT ${info_out}
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${fig_in} ${fig_out}
+ COMMAND ${MAKEINFO_EXEC} -o ${info_out} ${info_in}
+ DEPENDS ${info_in}
+ COMMENT "Creating Info file ${info_out}"
+ VERBATIM
+ )
+
+ ADD_CUSTOM_COMMAND(OUTPUT ${info_html}
+ COMMAND ${CMAKE_COMMAND} -E copy_directory ${fig_in} ${fig_out}
+ COMMAND ${MAKEINFO_EXEC} --html ${info_in}
+ DEPENDS ${info_in}
+ COMMENT "Creating ${info_html} from texinfo"
+ VERBATIM
+ )
+
+ ADD_CUSTOM_TARGET(wtracer-doc DEPENDS ${info_out})
+ ADD_CUSTOM_TARGET(wtracer-html DEPENDS ${info_html})
+ELSE ()
+ MESSAGE("doc: MakeInfo is not found, can't make texinfo")
+ENDIF (MAKEINFO_EXEC)
+
+
+
View
BIN utils/wtracer/doc/fig/wsim_mantis_mclk.gif
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ca11254

Please sign in to comment.