Skip to content
This repository has been archived by the owner on Mar 23, 2021. It is now read-only.

Commit

Permalink
Fix cmake and add cmake modules
Browse files Browse the repository at this point in the history
  • Loading branch information
take-cheeze committed Jan 28, 2012
1 parent 2e0c756 commit 17ca070
Show file tree
Hide file tree
Showing 9 changed files with 1,195 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6)

project("editor_vala" CXX C)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/../cmake_module)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_module)
find_package(Vala REQUIRED)
include(${VALA_USE_FILE})

Expand Down
7 changes: 7 additions & 0 deletions cmake_module/FindExpat.cmake
@@ -0,0 +1,7 @@
find_path(EXPAT_INCLUDE_DIR expat.h)
find_library(EXPAT_LIBRARY expat)
if((EXISTS ${EXPAT_INCLUDE_DIR}) AND (EXISTS ${EXPAT_LIBRARY}))
set(Expat_FOUND TRUE)
else()
set(Expat_FOUND FALSE)
endif()

0 comments on commit 17ca070

Please sign in to comment.