Change the aspect weaver project path to all source paths (src, simulators, debuggers, tools) and the <build>/src path. Without this change "external" builds do work but do not weave in any experiments. This change also allows multiple build directories within the project root, as the weaver will no longer use aspects from all builds. When further source directories are added to the project root, these definitions will need to be updated. Change-Id: If3d3d9fe61427fcba8b815171c8acdcdeb06cb69
19 lines
927 B
CMake
19 lines
927 B
CMake
##### Verbose make ####
|
|
option( VERBOSE_MAKE "Verbose Makefile output" OFF) # defaults to OFF
|
|
set(CMAKE_VERBOSE_MAKEFILE ${VERBOSE_MAKE})
|
|
|
|
### Additional compiler and linker flags ##
|
|
set(CMAKE_C_FLAGS "-g -Wall")
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
|
|
set(CMAKE_EXE_LINKER_FLAGS "-Wl,-gc-sections")
|
|
|
|
set(CMAKE_C_COMPILER "gcc")
|
|
set(CMAKE_CXX_COMPILER "ag++")
|
|
set(CMAKE_AGPP_FLAGS "--real-instances" CACHE STRING "Additional ag++ flags, e.g. --real-instances --keep_woven")
|
|
## Here we add the build dir holding the generated header files (protobuf)
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} --Xweaver -p ${PROJECT_SOURCE_DIR}/src -p ${PROJECT_SOURCE_DIR}/simulators -p ${PROJECT_SOURCE_DIR}/debuggers -p ${PROJECT_SOURCE_DIR}/tools -p ${PROJECT_BINARY_DIR}/src ${CMAKE_AGPP_FLAGS} --Xcompiler")
|
|
|
|
add_definitions(-D_FILE_OFFSET_BITS=64)
|
|
|
|
message(STATUS "[${PROJECT_NAME}] Compiler: ${CMAKE_C_COMPILER}/${CMAKE_CXX_COMPILER}" )
|