Browse Source

Adds setup for windows, removes superfluous options in setup for posix, adapts find for msint in WIN32 platform cmake file, corrects utils CMakelists.txt

CapXilinx 12 years ago
parent
commit
57eb7b7425

+ 1 - 1
bin/posix/setup_posix.sh

@@ -1,2 +1,2 @@
-cmake -DOpENer_PLATFORM:STRING="POSIX" -DCMAKE_BUILD_TYPE:STRING="" -DOpENer_PLATFORM:STRING=POSIX -DCMAKE_BUILD_TYPE:STRING= ../../source
+cmake -DOpENer_PLATFORM:STRING="POSIX" -DCMAKE_BUILD_TYPE:STRING="" ../../source
 

+ 1 - 0
bin/win32/setup_windows.bat

@@ -0,0 +1 @@
+cmake -DCMAKE_INSTALL_PREFIX:PATH="C:/Program Files (x86)/OpENer" -DOpENer_PLATFORM:STRING="WIN32" -DMSINTTYPES_DIR:PATH="MSINTTYPES_DIR-NOTFOUND" ../../source

+ 1 - 1
source/buildsupport/WIN32/OpENer_PLATFORM_INCLUDES.cmake

@@ -1,5 +1,5 @@
 macro(opener_platform_spec)
-  find_path( MSINTTYPES_DIR inttypes.h ${PROJECT_SOURCE_DIR}/../contrib/msinttypes)
+  find_path( MSINTTYPES_DIR inttypes.h ${PROJECT_SOURCE_DIR}/contrib/msinttypes)
   include_directories(${PORTS_SRC_DIR}/${OpENer_PLATFORM} ${PORTS_SRC_DIR}/${OpENer_PLATFORM}/sample_application ${MSINTTYPES_DIR} )
   set( CMAKE_C_FLAGS "${CMAKE_C_FLAGS}" )
 endmacro(opener_platform_spec)

+ 1 - 1
source/src/utils/CMakeLists.txt

@@ -2,6 +2,6 @@
 opener_common_includes()
 opener_platform_spec()
 
-set( UTILS_SRC random.c xorshiftrandom.c)
+set( UTILS_SRC xorshiftrandom.c)
 
 add_library( Utils ${UTILS_SRC} )