diff -r 000000000000 -r bde4ae8d615e os/kernelhwsrv/kernel/eka/drivers/trace/btracec.cmake --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/os/kernelhwsrv/kernel/eka/drivers/trace/btracec.cmake Fri Jun 15 03:10:57 2012 +0200 @@ -0,0 +1,60 @@ +# Copyright (c) 2009 Stéphane Lenclud. +# All rights reserved. +# This component and the accompanying materials are made available +# under the terms of the License "Eclipse Public License v1.0" +# which accompanies this distribution, and is available +# at the URL "http://www.eclipse.org/legal/epl-v10.html". +# +# Initial Contributors: +# Stéphane Lenclud. +# + +#################### +push_target(btracec) +#################### + +#------------------------------------------------------------------- +#Add this *.cmake file to our source tree +#------------------------------------------------------------------- +add_cmake_source() +#Make sure all the output from all projects will go in one place +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/../bin) +#Visual Studio IDE folders +source_group(Sources REGULAR_EXPRESSION ".+\\.cpp$") +source_group(Includes REGULAR_EXPRESSION ".+\\.h$") +source_group(Def REGULAR_EXPRESSION ".+\\.def$") +#------------------------------------------------------------------- + + +#------------------------------------------------------------------- +#Fix up include directories +#------------------------------------------------------------------- +include_directories(../../include) +#------------------------------------------------------------------- + + +#------------------------------------------------------------------- +#Define our source and target +#------------------------------------------------------------------- +get_source(source) +add_library (btracec SHARED ${source} + btracec.cpp + ../../bwins/btracecu.def) +target_link_libraries(btracec euser) +#------------------------------------------------------------------- + + + +#------------------------------------------------------------------- +#Fix up compiler defines +#------------------------------------------------------------------- +add_define(__DLL__) +#------------------------------------------------------------------- + + +#################### +pop_target(btracec) +#################### + + +